Re: Postfix: Accept some mail to mailbox, and forward some mail.
Thank you Shachar! Did you use Dovecot to access the mail? I am having some trouble with the Dovecot passwords. I am finding this in the logs when I unsuccessfully try to log in: Jul 07 08:13:25 auth-worker: Debug: pam(u...@somedomain.com,212.179.241.14): lookup service=dovecot Jul 07 08:13:25 auth-worker: Debug: pam(u...@somedomain.com,212.179.241.14): #1/1 style=1 msg=Password: Jul 07 08:13:27 auth-worker: Info: pam(u...@somedomain.com,212.179.241.14): pam_authenticate() failed: Authentication failure (password mismatch?) (given password: 12345) Jul 07 08:13:29 auth: Debug: client out: FAIL 2 user=u...@somedomain.com Jul 07 08:13:29 pop3-login: Info: Disconnected (auth failed, 2 attempts): user=u...@somedomain.com, method=PLAIN, rip=212.179.241.14, lip=10.138.11.251 This is not the real password, but an example to show that I think that there is an issue: $ /usr/bin/doveadm pw -u u...@somedomain.com -s DIGEST-MD5 Enter new password: # Here I have typed 12345 Retype new password: # Here I have typed 12345 {DIGEST-MD5}f4e442b0dec5009eaa8b9b4104923edc $ printf 12345 | md5sum 827ccb0eea8a706c4c34a16891f84e7b - $ Shouldn't that password match the md5sum check? Also, might I have the file formats wrong? $ cat passwd u...@somedomain.com::5000:5000::/var/mail/vhosts/someDomain.com/user $ cat shadow u...@somedomain.com:{DIGEST-MD5}f4e442b0dec5009eaa8b9b4104923edc $ Thanks! ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Postfix: Accept some mail to mailbox, and forward some mail.
Note that testing in Telnet fails the password as well, both when specifying the user without a domain and with a domain: $ telnet mail.someDomain.com 143 Trying x.x.x.x... Connected to mail.someDomain.com. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN] Dovecot ready. a login user 12345 a NO [AUTHENTICATIONFAILED] Authentication failed. e logout * BYE Logging out e OK Logout completed. Connection closed by foreign host. $ telnet mail.someDomain.com 143 Trying x.x.x.x... Connected to mail.someDomain.com. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN] Dovecot ready. a login u...@somedomain.com 12345 a NO [AUTHENTICATIONFAILED] Authentication failed. * BAD Error in IMAP command received by server. e logout * BYE Logging out e OK Logout completed. Connection closed by foreign host. $ -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Postfix: Accept some mail to mailbox, and forward some mail.
On 07/07/13 11:26, Dotan Cohen wrote: Thank you Shachar! Did you use Dovecot to access the mail? I am having some trouble with the Dovecot passwords. I am finding this in the logs when I unsuccessfully try to log in: I do use dovecot, but mine is an LDAP setup, so I suspect that that part of the configuration is completely different between our systems. Shachar ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Postfix: Accept some mail to mailbox, and forward some mail.
On Mon, Jul 8, 2013 at 5:37 AM, Shachar Shemesh shac...@shemesh.biz wrote: I do use dovecot, but mine is an LDAP setup, so I suspect that that part of the configuration is completely different between our systems. Right, I just looked again at your main.cf. I thought that you meant that you use LDAP for the user database. I'll go pour a coffee retroactively for yesterday. Thanks! Have a great week! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Postfix: Accept some mail to mailbox, and forward some mail.
On 05/07/13 16:16, Dotan Cohen wrote: Hi all. I need to set up a virtual alias (forwarder) and a virtual mailbox on the same domain. I'm using Postfix on Ubuntu Server 12.04. Here is my setup: It has been ages since I've set up a system with postfix, so my memory is rather sketchy. Here, however, is my setup: main.cf (relevant parts of it): virtual_mailbox_base = /var/spool/vmail virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf virtual_transport = virtual virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf I'm using LDAP rather than plain files, but should not matter much for our discussion. I see two things obviously different. One is that you did not mention virtual_transport -shouldn't matter - default is same as my setting. The other is that you did not have a virtual_alias_maps. This is weird, as the maps are the one you claim actually work. This is probably a copy/paste problem. As for your error message. I'd remove BOTH lines. The default for both are to use the hash files. Let me know if this helped Shachar ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il