Hi, I'm running my own mail server on Debian 11 with exim and Dovecot 2.3.13. I have it working, but I'm seeking advice on further customising my setup. I'm using the Maildir++ format with some personal folders. I use IMAP to retrieve mail and Dovecot's submission server to send mail. 1. I want to have incoming emails automatically placed in certain folders instead of 'Inbox' based on certain criteria. For example, I want all emails from PayPal to go into the 'PayPal' folder and all emails from the Debian mailing list to go into the 'Debian' folder. Can dovecot do this for me and what is the best approach? 2. When I delete an email using my user client, it is only 'marked' as deleted (Thunderbird places a scored line through it, and a 'T' is added to the filename in the Maildir). How can I get dovecot to automatically move mail marked 'deleted' to the Trash folder each time? I also want further delete operations on any mail in the 'Trash' folder to be permanently deleted. 3. I want to hide my client IP address from the headers when submitting mail to Dovecot's submissiond, but I can't seem to find any way to disable this. I would prefer that recipients only see the server IP address, but not the IP address of the mail client which submitted it. Regards, Ellie PS - When signing up for the mailing list, there was no selection ability on the question "Would you like to get replies to your mails only to the list, ie. add a Reply-To header?"
> 1. I want to have incoming emails automatically placed in certain > folders instead of 'Inbox' based on certain criteria. For example, I > want all emails from PayPal to go into the 'PayPal' folder and all > emails from the Debian mailing list to go into the 'Debian' folder. Can > dovecot do this for me and what is the best approach?sieve rules> > 2. When I delete an email using my user client, it is only 'marked' as > deleted (Thunderbird places a scored line through it, and a 'T' is added > to the filename in the Maildir). How can I get dovecot to automatically > move mail marked 'deleted' to the Trash folder each time?cron job with dovadm ?> I also want further delete operations on any mail in the 'Trash' folder > to be permanently deleted.cron job with dovadm purge?> 3. I want to hide my client IP address from the headers when submitting > mail to Dovecot's submissiond, but I can't seem to find any way to > disable this. I would prefer that recipients only see the server IP > address, but not the IP address of the mail client which submitted it.I am using mailfromd on incoming and outgoing servers. You can easily remove headers with that.
On 2022-11-09 06:20, Ellie McNeill wrote:> Hi, I'm running my own mail server on Debian 11 with exim and Dovecot > 2.3.13. I have it working, but I'm seeking advice on further > customising my setup. I'm using the Maildir++ format with some personal > folders. I use IMAP to retrieve mail and Dovecot's submission server to > send mail. > > 1. I want to have incoming emails automatically placed in certain > folders instead of 'Inbox' based on certain criteria. For example, I > want all emails from PayPal to go into the 'PayPal' folder and all > emails from the Debian mailing list to go into the 'Debian' folder. Can > dovecot do this for me and what is the best approach? > > 2. When I delete an email using my user client, it is only 'marked' as > deleted (Thunderbird places a scored line through it, and a 'T' is > added to the filename in the Maildir). How can I get dovecot to > automatically move mail marked 'deleted' to the Trash folder each time? > > I also want further delete operations on any mail in the 'Trash' folder > to be permanently deleted. > > 3. I want to hide my client IP address from the headers when submitting > mail to Dovecot's submissiond, but I can't seem to find any way to > disable this. I would prefer that recipients only see the server IP > address, but not the IP address of the mail client which submitted it. > > Regards, > Ellie > > PS - When signing up for the mailing list, there was no selection > ability on the question "Would you like to get replies to your mails > only to the list, ie. add a Reply-To header?"Hi Ellie, For the first question, you can use pigeonholes with sieve to place specific emails from specific addresses in specific folder. Refer to the documentations for pigeonholes and dovecot sieve plugin, you will find enough information to guide you in implementing this. https://doc.dovecot.org/configuration_manual/sieve/ https://doc.dovecot.org/configuration_manual/sieve/examples/ Good luck. Zakaria.
Il 09/11/2022 07:20, Ellie McNeill ha scritto:> 1. I want to have incoming emails automatically placed in certain > folders instead of 'Inbox' based on certain criteria. For example, I > want all emails from PayPal to go into the 'PayPal' folder and all > emails from the Debian mailing list to go into the 'Debian' folder. Can > dovecot do this for me and what is the best approach?pigenhole managesieve https://doc.dovecot.org/admin_manual/pigeonhole_managesieve_server/> 2. When I delete an email using my user client, it is only 'marked' as > deleted (Thunderbird places a scored line through it, and a 'T' is added > to the filename in the Maildir). How can I get dovecot to automatically > move mail marked 'deleted' to the Trash folder each time?In your client's account setting you can choose what to do when you delete a message: move to inbox, mark delete (that's what you have now, I think) and delete.> 3. I want to hide my client IP address from the headers when submitting > mail to Dovecot's submissiond, but I can't seem to find any way to > disable this. I would prefer that recipients only see the server IP > address, but not the IP address of the mail client which submitted it.I don't use exim, but search for "exim hide sender ip", it's easy.> Regards, > Ellie > > PS - When signing up for the mailing list, there was no selection > ability on the question "Would you like to get replies to your mails > only to the list, ie. add a Reply-To header?"-- cris
Thanks for some of the advice folks. I've got the delete/trash problem solved, but I'm still having trouble getting sieve to work. I've read the documentation and installed dovecot-sieve. I'm not installing dovecot-managesieved at the moment though. I have added 'sieve' to the mail_plugins= line on both 15-lda.conf and 20-lmtp.conf files. I put a simple .dovecot.sieve script in my home directory and tested it with sieve-test and the script works fine. However, sieve itself is still not working. I have run 'doveadm reload' a few times but it still won't work. What could I be overlooking? Ellie On 09/11/2022 06:20, Ellie McNeill wrote:> Hi, I'm running my own mail server on Debian 11 with exim and Dovecot > 2.3.13. I have it working, but I'm seeking advice on further customising > my setup. I'm using the Maildir++ format with some personal folders. I > use IMAP to retrieve mail and Dovecot's submission server to send mail. > > 1. I want to have incoming emails automatically placed in certain > folders instead of 'Inbox' based on certain criteria. For example, I > want all emails from PayPal to go into the 'PayPal' folder and all > emails from the Debian mailing list to go into the 'Debian' folder. Can > dovecot do this for me and what is the best approach? > > 2. When I delete an email using my user client, it is only 'marked' as > deleted (Thunderbird places a scored line through it, and a 'T' is added > to the filename in the Maildir). How can I get dovecot to automatically > move mail marked 'deleted' to the Trash folder each time? > > I also want further delete operations on any mail in the 'Trash' folder > to be permanently deleted. > > 3. I want to hide my client IP address from the headers when submitting > mail to Dovecot's submissiond, but I can't seem to find any way to > disable this. I would prefer that recipients only see the server IP > address, but not the IP address of the mail client which submitted it. > > Regards, > Ellie > > PS - When signing up for the mailing list, there was no selection > ability on the question "Would you like to get replies to your mails > only to the list, ie. add a Reply-To header?"