[Dovecot] dovecot LDA with sendmail

Hadi Salem almarzuki2001 at hotmail.com
Thu Apr 19 21:10:33 EEST 2012




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!!!

 

 

 

 

 

 

 

 

 		 	   		  


More information about the dovecot mailing list