Help! New to ISPCOnfig. My SMTP Service is Offline. I tried to check if postfix is running and it is.. but I can't see it when I run netstat -plnt I checked postfix status: root@ap:/# service postfix status * postfix is running root@ap:/# service postfix stop * Stopping Postfix Mail Transport Agent postfix [ OK ] root@ap:/# service postfix start * Starting Postfix Mail Transport Agent postfix [ OK ] root@ap:/# service postfix status * postfix is running There is an error: /var/mail/mail.log screenshot attached: Thank you for the help.
Restarted Postfix and here is the error: Jun 8 01:20:01 ap dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<sSCpS7402QAAAAAAAAAAAAAAAAAAAAAB> Jun 8 01:20:01 ap dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<10WpS740yQAAAAAAAAAAAAAAAAAAAAAB> Jun 8 01:20:01 ap postfix/postqueue[588]: warning: Mail system is down -- accessing queue directly
The first two lines are success messages of the pop3 and imap monitor, the last line just says that it is down but no sign of the restart which should be there. Which Distribution do you use and which command did you use to restart postfix?
Distribution of what sir? I have ISPConfig 3.0.5 4p9 I use postfix reload, i also tried postfix stop then postfix start: root@ap:/# postfix status postfix/postfix-script: the Postfix mail system is running: PID: 24635 root@ap:/# postfix stop postfix/postfix-script: stopping the Postfix mail system root@ap:/# postfix start postfix/postfix-script: starting the Postfix mail system I also tried to check from ISPConfig Mail error Log: Jun 7 10:03:05 ap postfix[23179]: fatal: myhostname and relayhost parameter settings must not be identical: mx.globalnaz.org Jun 7 10:03:06 ap postfix[23181]: fatal: myhostname and relayhost parameter settings must not be identical: mx.globalnaz.org Jun 7 10:05:41 ap postfix/postqueue[24945]: fatal: Cannot flush mail queue - mail system is down Jun 8 03:39:21 ap postfix/postfix-script[3574]: error: unknown command: '' Jun 8 03:39:21 ap postfix/postfix-script[3575]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)
Linux Distribution. Ok, that's the issue. You can not say postfix to send all outgoing emails to itself as this will produce a never ending loop. Set relayhost so that it is empty: relayhost = in /etc/postfix/main.cf and restart the server. Or change the hostname of your server to another name in /etc/hosts, /etc/mailname, /etc/hostname and /etc/postfix/main.cf
Linux Distribution: Ubuntu 14.04.3 I edited it then restart server, still getting this error: Jun 8 04:15:38 ap postfix/postfix-script[4608]: the Postfix mail system is running: PID: 3748 Jun 8 04:20:01 ap dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<hFhoz8A0MAAAAAAAAAAAAAAAAAAAAAAB> Jun 8 04:20:01 ap dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<5YJoz8A0IAAAAAAAAAAAAAAAAAAAAAAB> Jun 8 04:20:01 ap postfix/postqueue[4689]: warning: Mail system is down -- accessing queue directly
I dont know if this would help: when I run the netstat, PID 3748 gives me this. tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 3748/master
I am looking at /var/log/mail.err gives me this: Jun 7 10:03:05 ap postfix[23179]: fatal: myhostname and relayhost parameter settings must not be identical: mx.globalnaz.org Jun 7 10:03:06 ap postfix[23181]: fatal: myhostname and relayhost parameter settings must not be identical: mx.globalnaz.org Jun 7 10:05:41 ap postfix/postqueue[24945]: fatal: Cannot flush mail queue - mail system is down Jun 8 03:39:21 ap postfix/postfix-script[3574]: error: unknown command: '' Jun 8 03:39:21 ap postfix/postfix-script[3575]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration) ~ It looks like, it has not changed. The log is not updated. It should be PID: 3748
seems as you used a wrong command to restart postfix. Use e.f. service postfix restart to restart postfix.
I restarted postfix it gives me this error: Jun 8 21:25:02 ap postfix/postqueue[1041]: warning: Mail system is down -- accessing queue directly Jun 8 21:25:57 ap postfix/master[29740]: terminating on signal 15 Jun 8 21:25:57 ap postfix/master[1287]: daemon started -- version 2.11.0, configuration /etc/postfix Jun 8 21:26:51 ap postfix/postfix-script[1309]: the Postfix mail system is running: PID: 1287 Jun 8 21:30:01 ap dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<Gxz4Ms80WgAAAAAAAAAAAAAAAAAAAAAB> Jun 8 21:30:01 ap dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<ATj4Ms80SgAAAAAAAAAAAAAAAAAAAAAB> Jun 8 21:30:01 ap postfix/postqueue[1374]: warning: Mail system is down -- accessing queue directly Also, when I run netstart PID 1287 is not listening to port 25 Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 32454/pure-ftpd (SE tcp 0 0 192.168.230.203:53 0.0.0.0:* LISTEN 13645/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 13645/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 927/sshd tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 13645/named tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 13576/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 13576/dovecot tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 12525/amavisd-new ( tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 1287/master tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 11856/mysqld tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1287/master tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 2208/memcached tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 13576/dovecot tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13576/dovecot tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 30581/perl tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 1287/master tcp6 0 0 :::21 :::* LISTEN 32454/pure-ftpd (SE tcp6 0 0 :::53 :::* LISTEN 13645/named tcp6 0 0 :::22 :::* LISTEN 927/sshd tcp6 0 0 ::1:953 :::* LISTEN 13645/named tcp6 0 0 :::443 :::* LISTEN 1319/apache2 tcp6 0 0 :::993 :::* LISTEN 13576/dovecot tcp6 0 0 :::995 :::* LISTEN 13576/dovecot tcp6 0 0 :::587 :::* LISTEN 1287/master tcp6 0 0 :::110 :::* LISTEN 13576/dovecot tcp6 0 0 :::143 :::* LISTEN 13576/dovecot tcp6 0 0 :::9999 :::* LISTEN 30968/nodejs tcp6 0 0 :::8080 :::* LISTEN 1319/apache2 tcp6 0 0 :::80 :::* LISTEN 1319/apache2 tcp6 0 0 :::465 :::* LISTEN 1287/master tcp6 0 0 :::8081 :::* LISTEN 1319/apache2 Checked ISPConfig monitor: Web-Server:Online FTP-Server:Online SMTP-Server:Offline POP3-Server:OnlineI MAP-Server:Online DNS-Server:Online mySQL-Server:Online
Hi, I changed master.cf file to include this line: smtp inet n - n - - smtpd It is now listening to port 25 and the ISP Config Monitor now says that SMTP server is now Online. However, it is still not sending mails. Looking at mail.log: Jun 9 00:30:01 ap postfix/smtpd[26507]: connect from localhost[::1] Jun 9 00:30:01 ap dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<ouGzttE0pAAAAAAAAAAAAAAAAAAAAAAB> Jun 9 00:30:01 ap dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<NfCzttE0tAAAAAAAAAAAAAAAAAAAAAAB> Jun 9 00:30:01 ap postfix/smtpd[26507]: lost connection after CONNECT from localhost[::1] Jun 9 00:30:01 ap postfix/smtpd[26507]: disconnect from localhost[::1] Jun 9 00:30:01 ap postfix/postqueue[26521]: warning: Mail system is down -- accessing queue directly Thanks for helping us out.
submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject smtp inet n - n - - smtpd smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject #amavis unix - - - - 2 smtp # -o smtp_data_done_timeout=1200 # -o smtp_send_xforward_command=yes # 127.0.0.1:10025 inet n - - - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap trace unix - - - - 0 bounce verify unix - - - - 1 verify tlsmgr unix - - - 1000? 1 tlsmgr anvil unix - - - - 1 anvil scache unix - - - - 1 scache discard unix - - - - - discard retry unix - - - - - error relay unix - - n - - smtp -o smtp_fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 dovecot unix - n n - - pipe flags=DROhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} ~
Seems as if someone removed all the lines that ubuntu adds by default so that only the additions that ispconfig added are there. Here is the complete master.cf that you get when you follow the perfect server guide for ubuntu 14.04: Code: # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.postfix.org/master.5.html). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd #smtp inet n - - - 1 postscreen #smtpd pass - - - - - smtpd #dnsblog unix - - - - 0 dnsblog #tlsproxy unix - - - - 0 tlsproxy submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup unix n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr unix n - n 300 1 qmgr #qmgr unix n - n 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender} # # ==================================================================== # # Recent Cyrus versions can use the existing "lmtp" master.cf entry. # # Specify in cyrus.conf: # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4 # # Specify in main.cf one or more of the following: # mailbox_transport = lmtp:inet:localhost # virtual_transport = lmtp:inet:localhost # # ==================================================================== # # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrus_destination_recipient_limit=1 # #cyrus unix - n n - - pipe # user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} # # ==================================================================== # Old example of delivery via Cyrus. # #old-cyrus unix - n n - - pipe # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} # # ==================================================================== # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} dovecot unix - n n - - pipe flags=DROhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes 127.0.0.1:10025 inet n - - - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
This is what I was looking for, I only found this link https://www.howtoforge.com/the-perf...d-mysql-php-postfix-dovecot-and-ispconfig3-p4 I tried to send an email and this is what appears in the mail.log Jun 9 05:35:01 ap postfix/smtpd[1321]: connect from localhost[::1] Jun 9 05:35:01 ap dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<1Cl2+dU0DgAAAAAAAAAAAAAAAAAAAAAB> Jun 9 05:35:01 ap dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<pz12+dU0HgAAAAAAAAAAAAAAAAAAAAAB> Jun 9 05:35:01 ap postfix/smtpd[1321]: lost connection after CONNECT from localhost[::1] Jun 9 05:35:01 ap postfix/smtpd[1321]: disconnect from localhost[::1] Jun 9 05:35:55 ap postfix/pickup[974]: E94C4140E91: uid=5006 from=<[email protected]> Jun 9 05:35:55 ap postfix/cleanup[1354]: E94C4140E91: message-id=<[email protected]> Jun 9 05:35:55 ap postfix/qmgr[975]: E94C4140E91: from=<[email protected]>, size=1387, nrcpt=1 (queue active) Jun 9 05:35:56 ap postfix/smtpd[1361]: connect from localhost[127.0.0.1] Jun 9 05:35:56 ap postfix/smtpd[1361]: 71C54140C63: client=localhost[127.0.0.1] Jun 9 05:35:56 ap postfix/cleanup[1354]: 71C54140C63: message-id=<[email protected]> Jun 9 05:35:56 ap postfix/qmgr[975]: 71C54140C63: from=<[email protected]>, size=2065, nrcpt=1 (queue active) Jun 9 05:35:56 ap amavis[1233]: (01233-01) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 7mAr9XH7GTNg, Hits: 2.503, size: 1386, queued_as: 71C54140C63, 500 ms Jun 9 05:35:56 ap postfix/smtp[1357]: E94C4140E91: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.54, delays=0.02/0.01/0.01/0.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 71C54140C63) Jun 9 05:35:56 ap postfix/qmgr[975]: E94C4140E91: removed Jun 9 05:35:56 ap postfix/pipe[1363]: 71C54140C63: to=<[email protected]>, relay=dovecot, delay=0.04, delays=0.01/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown) Jun 9 05:35:56 ap postfix/cleanup[1354]: 7C546140F09: message-id=<[email protected]> Jun 9 05:35:56 ap postfix/qmgr[975]: 7C546140F09: from=<>, size=3894, nrcpt=1 (queue active) Jun 9 05:35:56 ap postfix/bounce[1367]: 71C54140C63: sender non-delivery notification: 7C546140F09 Jun 9 05:35:56 ap postfix/qmgr[975]: 71C54140C63: removed Jun 9 05:35:56 ap postfix/pipe[1363]: 7C546140F09: to=<[email protected]>, relay=dovecot, delay=0.02, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown) Jun 9 05:35:56 ap postfix/qmgr[975]: 7C546140F09: removed
Your message to [email protected] bounced when dovecot tried to deliver it, saying 'user unknown'. So as long as you do have a [email protected] mailbox created, I think postfix has probably done it's part correctly, and you'd need to look at why dovecot couldn't deliver. My first thought is try downloading the ispconfig installation tarball, run update.sh from there, and let it reconfigure your services again.
and ensure that the hostname of your server is a subdomain like server1.yourdomain.tld and not just yourdomain.tld and that yourdomain.tld (without the subdomain) is not used in the files /etc/mailname and /etc/postfix/main.cf.