Hi,
Im configuring sendmail with dovecot for virtual users using
password file and file for user name. on centos.
dovecot-1.0.7-7.el5
sendmail-8.13.8-2.el5
dovecot ?n
# 1.0.7: /etc/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
ssl_disable: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
default_mail_env: maildir:/home/vmail/%d/%n
mail_location: maildir:/home/vmail/%d/%n
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
auth default:
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver:
passwd-file
args:
/etc/dovecot/passwd
userdb:
driver:
passwd-file
args:
/etc/dovecot/users
socket:
type: listen
master:
path:
/var/run/dovecot/auth-master
mode: 384
user: root
group: root
I have also added dovecot LDA for sendmail
/usr/share/sendmail-cf/mailer/dovecot.m4
######################*****##############
### DOVECOT Mailer
specification
###
##################*****##################
Mdovecot,
P=/usr/libexec/dovecot/deliver, F=DFMPhnu9,S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP/HdrFromSMTP,T=DNS/RFC822/X-Unix,A=/usr/libexec/dovecot/deliver -d
$u
And also
[root at host1 mail]# cat /etc/mail/mailertable
example.com
dovecot:dovecot
however when im sending email to the virtual user im getting
this error,
Apr 19 20:52:13 host1 sendmail[22311]: q3JHqDAR022309:
to=<jamal at example.com>, ctladdr=<root at host1.bigmama.com>
(0/0),
delay=00:00:00, xdelay=00:00:00, mailer=dovecot, pri=120292, relay=dovecot,
dsn=4.0.0, stat=Deferred: dovecot mailer (/usr/libexec/dovecot/deliver) exited
with EX_TEMPFAIL
Dovecot LDA can?t deliver the mail to the user!!!
Hadi Salem <almarzuki2001 at hotmail.com> writes:> Im configuring sendmail with dovecot for virtual users using > password file and file for user name. on centos. > > dovecot-1.0.7-7.el5Maybe I can beat Charles Marcus to the punch and recommend you upgrade to the latest version, otherwise you'll run into bugs that have already been fixed.> Mdovecot, > P=/usr/libexec/dovecot/deliver, F=DFMPhnu9,S=EnvFromSMTP/HdrFromSMTP, > R=EnvToSMTP/HdrFromSMTP,T=DNS/RFC822/X-Unix,A=/usr/libexec/dovecot/deliver -d > $u > ... > Apr 19 20:52:13 host1 sendmail[22311]: q3JHqDAR022309: > to=<jamal at example.com>, ctladdr=<root at host1.bigmama.com> (0/0), > delay=00:00:00, xdelay=00:00:00, mailer=dovecot, pri=120292, relay=dovecot, > dsn=4.0.0, stat=Deferred: dovecot mailer (/usr/libexec/dovecot/deliver) exited > with EX_TEMPFAILIs there any logs from deliver? If not, look at this page to configure logging http://wiki.dovecot.org/LDA That's your best chance at finding out the problem. I don't have virtual users, so I can't venture to say whether this is part of the problem. I know I had to fiddle with the mailer flags (you have "DFMPhnu9") to get my setup working, but I don't remember what I did or why. Try adding the "S" flag and see if that helps. Joseph Tam <jtam.home at gmail.com>
> i installed new version 2.0.20. but its the same problem > > args = username_format=%u /etc/dovecot/users...> > Apr 21 17:47:16 host1 sendmail[32561]: q3LElF79032559: to=<jamal at example.com>, ctladdr=<root at host1.bigmama.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=dovecot, pri=120292, relay=dovecot, dsn=4.0.0, stat=Deferred: dovecot mailer (/usr/local/libexec/dovecot/dovecot-lda) exited with EX_TEMPFAILAny logs for dovecot? Same sendmail configs as before or did you try the extra flag I suggested? Joseph Tam <jtam.home at gmail.com>
Timo, in response to Hadi, wrote:>> Apr 24 20:25:46 lda(jamal at example.com): Fatal: >> setgid(5000(vmail) from userdb lo >> okup) failed with >> euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi >> tted (This binary should probably be called with process group set to 5000(vmail >> ) instead of 12(mail)) > > Configure your MTA to run dovecot-lda as vmail instead of as mail.Yeah, what he said. Someone helpfully added documentation on how to do this at the end of Dovecot1's wiki (http://wiki.dovecot.org/LDA/Sendmail), which probably should be copied to Dovecot 2's wiki. So that's what I did. Joseph Tam <jtam.home at gmail.com>