permissions set for mail server:
ls -ld /var/mail
Code:
drwxrwsr-x 3 vmail vmail 4096 Oct 22 21:59 /var/mail
ls -ld /etc/dovecot
Code:
drwxr-x--- 4 vmail dovecot 4096 Oct 22 21:58 /etc/dovecot
/var/log/mail.log
Code:
Oct 20 17:42:48 kalos postfix/smtpd[28156]: fatal: bad boolean configuration: smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_s$
Oct 20 17:42:49 kalos postfix/master[24019]: warning: process /usr/lib/postfix/smtpd pid 28156 exit status 1
Oct 20 17:42:49 kalos postfix/master[24019]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct 20 17:43:13 kalos postfix/master[24019]: terminating on signal 15
Oct 20 17:43:13 kalos postfix/master[28299]: daemon started -- version 2.9.6, configuration /etc/postfix
Oct 21 02:13:37 kalos postfix/master[4048]: daemon started -- version 2.9.6, configuration /etc/postfix
Oct 21 02:26:11 kalos postfix/pickup[4054]: 7450AE8B6: uid=0 from=<root>
Oct 21 02:26:11 kalos postfix/cleanup[4966]: 7450AE8B6: message-id=<20141021092611.7450AE8B6@kalos.harris.hk>
Oct 21 02:26:11 kalos postfix/qmgr[4055]: 7450AE8B6: from=<root@harris.hk>, size=1777, nrcpt=1 (queue active)
Oct 21 02:26:11 kalos postfix/lmtp[4974]: 7450AE8B6: to=<root@harris.hk>, orig_to=<root>, relay=kalos.harris.hk[private/dovecot-lmtp], delay=0.14, delays=0.$
Oct 21 02:26:11 kalos postfix/cleanup[4966]: 91B96E8B9: message-id=<20141021092611.91B96E8B9@kalos.harris.hk>
Oct 21 02:26:11 kalos postfix/qmgr[4055]: 91B96E8B9: from=<>, size=3710, nrcpt=1 (queue active)
Oct 21 02:26:11 kalos postfix/bounce[4981]: 7450AE8B6: sender non-delivery notification: 91B96E8B9
Oct 21 02:26:11 kalos postfix/qmgr[4055]: 7450AE8B6: removed
Oct 21 02:26:11 kalos postfix/lmtp[4974]: 91B96E8B9: to=<root@harris.hk>, relay=kalos.harris.hk[private/dovecot-lmtp], delay=0.01, delays=0/0/0/0, dsn=5.1.1$
Oct 21 02:26:11 kalos postfix/qmgr[4055]: 91B96E8B9: removed
Oct 22 22:07:34 kalos postfix/master[4597]: daemon started -- version 2.9.6, configuration /etc/postfix
service postfix status
Code:
[ ok ] postfix is running.
service dovecot status
Code:
[ ok ] dovecot is running.
service postfix restart
Code:
[ ok ] Stopping Postfix Mail Transport Agent: postfix.
[ ok ] Starting Postfix Mail Transport Agent: postfix.
service dovecot restart
Code:
[ ok ] Restarting IMAP/POP3 mail server: dovecot.
tail /var/log/mail.log
Code:
Oct 21 02:26:11 kalos postfix/lmtp[4974]: 7450AE8B6: to=<root@harris.hk>, orig_to=<root>, relay=kalos.harris.hk[private/dovecot-lmtp], delay=0.14, delays=0.04/0.02/0.02/0.06, dsn=5.1.1, status=bounced (host kalos.harris.hk[private/dovecot-lmtp] said: 550 5.1.1 <root@harris.hk> User doesn't exist: root@harris.hk (in reply to RCPT TO command))
Oct 21 02:26:11 kalos postfix/cleanup[4966]: 91B96E8B9: message-id=<20141021092611.91B96E8B9@kalos.harris.hk>
Oct 21 02:26:11 kalos postfix/qmgr[4055]: 91B96E8B9: from=<>, size=3710, nrcpt=1 (queue active)
Oct 21 02:26:11 kalos postfix/bounce[4981]: 7450AE8B6: sender non-delivery notification: 91B96E8B9
Oct 21 02:26:11 kalos postfix/qmgr[4055]: 7450AE8B6: removed
Oct 21 02:26:11 kalos postfix/lmtp[4974]: 91B96E8B9: to=<root@harris.hk>, relay=kalos.harris.hk[private/dovecot-lmtp], delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (host kalos.harris.hk[private/dovecot-lmtp] said: 550 5.1.1 <root@harris.hk> User doesn't exist: root@harris.hk (in reply to RCPT TO command))
Oct 21 02:26:11 kalos postfix/qmgr[4055]: 91B96E8B9: removed
Oct 22 22:07:34 kalos postfix/master[4597]: daemon started -- version 2.9.6, configuration /etc/postfix
Oct 22 22:46:23 kalos postfix/master[4597]: terminating on signal 15
Oct 22 22:46:23 kalos postfix/master[6166]: daemon started -- version 2.9.6, configuration /etc/postfix
tail /var/log/upstart/dovecot.log
Code:
tail: cannot open `/var/log/upstart/dovecot.log' for reading: No such file or directory
vonskippy wrote:
Turn off IPTABLES, and get your Email service working. Once it's working, turn on IPTABLES and once again, get Email working (knowing that any problems with email now are caused by the firewall).
How can I turn off iptables in Debian?
As root:
'/etc/init.d/iptables stop'
output: (doesn't work)
'iptables -X'
output: iptables: Too many links.
The CentOS commands do not work either. I am using Debian.