Solved using LMTP delivery

main.cf :
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp

master.cf
lmtp      unix  -       -       n       -       -       lmtp

cyrus.conf
    lmtp         cmd="lmtpd" listen="lmtp"


I have an external machine for antivirus/antispam, so no amavis/spamassassin 
needed.

Here an email received (mail.log)

Oct 14 12:29:20 web1 postfix/smtpd[2928]: connect from PcMatteo[192.168.0.8]
Oct 14 12:29:20 web1 postfix/smtpd[2928]: C64EC1C24A: 
client=PcMatteo[192.168.0.8]
Oct 14 12:29:21 web1 postfix/smtpd[2928]: 103641C24A: 
client=PcMatteo[192.168.0.8]
Oct 14 12:29:21 web1 postfix/cleanup[2935]: 103641C24A: message-id=<[EMAIL 
PROTECTED]>
Oct 14 12:29:21 web1 postfix/qmgr[2925]: 103641C24A: from=<[EMAIL PROTECTED]>, 
size=598, nrcpt=1 (queue active)
Oct 14 12:29:21 web1 postfix/lmtp[2940]: 103641C24A: to=<[EMAIL PROTECTED]>, 
relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=0, status=sent (250 
2.1.5 Ok)
Oct 14 12:29:21 web1 postfix/qmgr[2925]: 103641C24A: removed
Oct 14 12:29:21 web1 postfix/smtpd[2928]: disconnect from PcMatteo[192.168.0.8]

Obviously there is funny names for domain, I'm not the admin of cnn.com :-P

I had a permission problem with lmtp permissions.

Oct 14 09:40:43 web1 postfix/lmtp[2219]: 7C2B81C27D: to=<[EMAIL PROTECTED]>, 
relay=none, delay=0, status=deferred (connect to 
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: Permission denied)

Solved giving access to /var/imap/socket/lmtp to postfix user that was not able 
to access /var/imap (0750 owner cyrus.cyrus).

But now my mail-server is working.

I have to use TLS for better security, so maybe I'll be here to ask other 
things :-)))


Ciao!


_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to