From: Jerry <je...@se...> - 2013-03-09 20:33:56
|
I was asked to see if it was possible to get fetchmail to deliver mail directly to a dovecot server. It is presently working with a Postfix MTA. The system is comprised of solely virtual users. From the Postfix "master.cf" file: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient} I have tried different ways of configuring the "mda" settings in fetchmail; however, none of them work. This example stated that it couldn't open the dovecot log file and that it exited with an error 75. user 'user@isp' there with password 'secret' is 'user' here options forcecr dropdelivered smtpaddress 'isp.com' ssl sslcertpath '/usr/local/etc/postfix/certs/' sslfingerprint '74:8F:40:34:7F:B4:5E:23:99:B3:A9:92:93:67:13:8A' mda "/usr/local/libexec/dovecot/deliver -f %F -a %T" I am not even sure if it is possible. I cannot find any real documentation via Google from anyone who has actually gotten it to work. This is being run on a FreeBSD machine. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ |
From: Rob M. <rob...@gm...> - 2013-03-09 22:06:33
|
On Sat, Mar 9, 2013 at 7:33 PM, Jerry <je...@se...> wrote: > I was asked to see if it was possible to get fetchmail to deliver mail > directly to a dovecot server. It is presently working with a Postfix > MTA. The system is comprised of solely virtual users. > > From the Postfix "master.cf" file: > > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver > -f ${sender} -d ${user}@${nexthop} -a ${recipient} > > I have tried different ways of configuring the "mda" settings in > fetchmail; however, none of them work. This example stated that it > couldn't open the dovecot log file and that it exited with an error 75. > > user 'user@isp' there with password 'secret' is 'user' here options > forcecr dropdelivered smtpaddress 'isp.com' ssl sslcertpath > '/usr/local/etc/postfix/certs/' sslfingerprint > '74:8F:40:34:7F:B4:5E:23:99:B3:A9:92:93:67:13:8A' mda > "/usr/local/libexec/dovecot/deliver -f %F -a %T" > > I am not even sure if it is possible. I cannot find any real > documentation via Google from anyone who has actually gotten it to > work. This is being run on a FreeBSD machine. A quick Google search suggests that the problem is usually that you're not running fetchmail and dovecot as the same user. Doing that, or delivering via SMTP, seems to solve it in the cases I found. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche |
From: Jerry <je...@se...> - 2013-03-09 22:48:49
|
On Sat, 9 Mar 2013 21:06:32 +0000 Rob MacGregor articulated: > A quick Google search suggests that the problem is usually that you're > not running fetchmail and dovecot as the same user. Doing that, or > delivering via SMTP, seems to solve it in the cases I found. I noticed that also. Dovecot runs as user:group "vmail:vmail". How do I get fetchmail to deliver mail using "vmail" as the user ID? -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ Blaise Pascal |
From: Rob M. <rob...@gm...> - 2013-03-09 23:17:47
|
On Sat, Mar 9, 2013 at 9:48 PM, Jerry <je...@se...> wrote: > On Sat, 9 Mar 2013 21:06:32 +0000 > Rob MacGregor articulated: > >> A quick Google search suggests that the problem is usually that you're >> not running fetchmail and dovecot as the same user. Doing that, or >> delivering via SMTP, seems to solve it in the cases I found. > > I noticed that also. Dovecot runs as user:group "vmail:vmail". How do I > get fetchmail to deliver mail using "vmail" as the user ID? You don't* - you run fetchmail as the user "vmail". How you do that depends on how you're running fetchmail. If it's on boot as a daemon you'll need to change the startup script, or the config file it calls. If it's from cron simply remove it from the current crontab and add it to vmail's crontab instead. *Well, you could probably use sudo to achieve this, but it's likely to be significantly more complicated to get working. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche |