I really could use some help.
I have been using dovecot and qmail on Debian for years with no problems.
I just replaced qmail with Postfix and have not been able to get messages
to dovecot via deliver.
I have tried to set it up as a virtual mailbox only "no lookup
necessary"
system following the vaious help pages. I am using just a single user
vmail:mail to execute postfix and deliver.
My Dovecot.conf is:
-----------------------
# 1.2.16: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-194.17.1.el5.028stab070.7 i686 Debian 5.0.7 simfs
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot_info.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3 imaps pop3s
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
first_valid_uid: 112
last_valid_uid: 112
first_valid_gid: 8
last_valid_gid: 8
mail_location: maildir:/var/mail/domains/%d/%n/Maildir
mail_debug: yes
mail_full_filesystem_access: yes
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
lda:
postmaster_address: mark at bronsteinlaw.com
mail_plugins: sieve
log_path: /var/log/dovecot/dovecot-local-deliver.log
auth_socket_path: var/run/dovecot/auth-master
auth default:
user: vmail
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: passwd-file
args: /etc/dovecot/passwd
userdb:
driver: static
args: uid=vmail gid=mail home=/var/mail/domains/%d/%n
allow_all_users=yes
socket:
type: connect
master:
path: /var/run/dovecot/auth-master
mode: 384
user: vmail
group: mail
plugin:
sieve_global_dir: /etc/dovecot/sieve/global/
--------------------------------
I have the dovecot deliver line in postfix's master.cf according to the
docs:
---------------
dovecot unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d
${recipient}
------------------
Incoming emails are being saved to the Postfix queue but then delivery is
unsuccessful with an error message of:
2010-12-26 23:11:09 deliver(mark at bronsteinlaw.com): Error: userdb lookup:
connect(var/run/dovecot/auth-master) failed: No such file or directory
Any help would be appreciated.
Thanks,
Mark B
It seens you are missing an "/" on auth path or you did it intencionaly ? []'sf.rique On Mon, Dec 27, 2010 at 2:20 AM, Mark Bronstein <mark at bronsteinlaw.com>wrote:> I really could use some help. > > I have been using dovecot and qmail on Debian for years with no problems. > > I just replaced qmail with Postfix and have not been able to get messages > to dovecot via deliver. > > I have tried to set it up as a virtual mailbox only "no lookup necessary" > system following the vaious help pages. I am using just a single user > vmail:mail to execute postfix and deliver. > > My Dovecot.conf is: > > ----------------------- > # 1.2.16: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.18-194.17.1.el5.028stab070.7 i686 Debian 5.0.7 simfs > log_path: /var/log/dovecot/dovecot.log > info_log_path: /var/log/dovecot/dovecot_info.log > log_timestamp: %Y-%m-%d %H:%M:%S > protocols: imap pop3 imaps pop3s > disable_plaintext_auth: no > verbose_ssl: yes > login_dir: /var/run/dovecot/login > login_executable(default): /usr/lib/dovecot/imap-login > login_executable(imap): /usr/lib/dovecot/imap-login > login_executable(pop3): /usr/lib/dovecot/pop3-login > first_valid_uid: 112 > last_valid_uid: 112 > first_valid_gid: 8 > last_valid_gid: 8 > mail_location: maildir:/var/mail/domains/%d/%n/Maildir > mail_debug: yes > mail_full_filesystem_access: yes > mbox_write_locks: fcntl dotlock > mail_executable(default): /usr/lib/dovecot/imap > mail_executable(imap): /usr/lib/dovecot/imap > mail_executable(pop3): /usr/lib/dovecot/pop3 > mail_plugin_dir(default): /usr/lib/dovecot/modules/imap > mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap > mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 > lda: > postmaster_address: mark at bronsteinlaw.com > mail_plugins: sieve > log_path: /var/log/dovecot/dovecot-local-deliver.log > auth_socket_path: var/run/dovecot/auth-master > auth default: > user: vmail > verbose: yes > debug: yes > debug_passwords: yes > passdb: > driver: passwd-file > args: /etc/dovecot/passwd > userdb: > driver: static > args: uid=vmail gid=mail home=/var/mail/domains/%d/%n > allow_all_users=yes > socket: > type: connect > master: > path: /var/run/dovecot/auth-master > mode: 384 > user: vmail > group: mail > plugin: > sieve_global_dir: /etc/dovecot/sieve/global/ > -------------------------------- > I have the dovecot deliver line in postfix's master.cf according to the > docs: > --------------- > dovecot unix - n n - - pipe > flags=DRhu user=vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d > ${recipient} > ------------------ > > Incoming emails are being saved to the Postfix queue but then delivery is > unsuccessful with an error message of: > > 2010-12-26 23:11:09 deliver(mark at bronsteinlaw.com): Error: userdb lookup: > connect(var/run/dovecot/auth-master) failed: No such file or directory > > Any help would be appreciated. > > Thanks, > > Mark B >
Thanks for catching. But same problem even after correcting. Mark On 12/26/2010 11:39 PM, Henrique Fernandes wrote:> It seens you are missing an "/" on auth path > > or you did it intencionaly ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 27.12.2010 um 05:53 schrieb Mark Bronstein:> Thanks for catching. But same problem even after correcting. > MarkLooks like sockets are missing/incorrect. The client socket should be placed in the Postfix CHROOT: socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = vmail group = mail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } Postfix needs to reference it like this: [main.cf] smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL Regards Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) iEYEARECAAYFAk0YO/0ACgkQ+meF/S97aXi6gQCdHDWrYFlrvbclIpQ9IXDo9Y82 IgAAoIf1x9BTxBe33VGD6iiy04t43des =AsLI -----END PGP SIGNATURE-----
On Sun, 26 Dec 2010 23:20:57 -0500, Mark Bronstein <mark at bronsteinlaw.com> wrote:> # 1.2.16: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.18-194.17.1.el5.028stab070.7 i686 Debian 5.0.7 simfs > mail_location: maildir:/var/mail/domains/%d/%n/Maildir > lda: > postmaster_address: mark at bronsteinlaw.com > mail_plugins: sieve > log_path: /var/log/dovecot/dovecot-local-deliver.loglog_path: /var/mail/dovecot-local-deliver.log (later you could also consider using /var/vmail instead of /var/mail as there is the possibility of other apps trying to write at the Debian default /var/mail)> auth_socket_path: var/run/dovecot/auth-masterauth_socket_path: /var/run/dovecot/auth-master> auth default: > user: vmailuser: root (or, less secure, make password files world readable)> master: > path: /var/run/dovecot/auth-master > mode: 384 > user: vmail > group: mail#group: mail M.