From: Gene H. <ghe...@wd...> - 2015-11-06 14:04:06
|
On Friday 06 November 2015 05:08:53 Carlos E. R. wrote: > On 2015-11-06 10:39, General Traffic Ltd wrote: > > Hi Jerry > > > > I have sieve setup, could you please tell me how to pass mail from > > fetchmail to postfix. > > > > I have tried sending all mail to the postfix user but that just > > sits in postfix mail folder. > > poll SERVER with proto imap timeout 50, and tracepolls > user REMOTE, with password PASS, is LOCALUSER here > > a rule of that sort in fetchmail hands mail over to the local MTA, > which in my case is postfix. > > Of course, the above is for single user. > > What postfix does with it, is another issue. By default it will sit > under /var/spool/mail/, on *SUSE at least. From there, it is generally up to the email agent to fetch it from there & sort it to the proper locations. Since you're using dovecot and sieve, its generally a matter of writing the sort rules. Here, I am basically single user, so I wrote a script to oversee inotifywait, which is watching /var/spool/mail, and when a file is closed, it takes the filename returned by inotifywait, and if its one that is legit mail for me, sends kmail a get the mail message over dbus or whatever interprocess utility is used on your system. kmail then goes and gets it, sorting it to the proper location. So literally all I have to do is read, and if I can help, reply to the message. Everything else is 100% automatic here. As it should be. The only non-viri or non-spam rule in my .procmailrc sorts and routes messages from a niece in NYS, putting them directly in the kmail folder dedicated to that. I should change that, and let kmail do that sorting as it is very occasionally confused when it finds a message that is not in its index for that folder. But its not often enough to bug me. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> |