Postfix / Dovecot not working with ISPConfig

Discussion in 'Server Operation' started by Sgt. Rock, Feb 25, 2016.

  1. Sgt. Rock

    Sgt. Rock Member

    I have my server setup using Ubuntu 15.10 via the Perfect Server - Ubuntu 15.10 with Apache, Postfix and Dovecot running using ISPConfig 3. Many thanks for the excellent tutorial, I am hosting my own website and it works really well. The drawback is I cannot seem to get Email for my site to work correctly or at all. The server can send and receive email to system users (local host) but none of the email accounts set up under ISPConfig work.

    if config output:

    :~# ifconfig
    enp1s5 Link encap:Ethernet HWaddr e8:de:27:a7:61:e5
    inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::eade:27ff:fea7:61e5/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:104009 errors:0 dropped:2 overruns:0 frame:0
    TX packets:53234 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:124225147 (124.2 MB) TX bytes:10382141 (10.3 MB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:7258 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7258 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2096786 (2.0 MB) TX bytes:2096786 (2.0 MB)

    Network Tools (Supertool) output on my server:

    Connecting to 50.43.15.47

    220 webserver.hedhouse.net ESMTP Postfix (Ubuntu) [797 ms]
    EHLO PWS3.mxtoolbox.com
    250-webserver.hedhouse.net
    250-PIPELINING
    250-SIZE
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN [688 ms]
    MAIL FROM:<[email protected]>
    250 2.1.0 Ok [688 ms]
    RCPT TO:<[email protected]>
    454 4.7.1 <[email protected]>: Relay access denied [688 ms]

    PWS3v2 7235ms

    I can use Mutt to read system mail which tells me the error messages from send / receive efforts, but using email applications from my other computers fails to work with email accounts set up thru ISPConfig.

    Any suggestions or assistance will be greatly appreciated.

    Charles
    Handyman IT LLC
     
  2. Sgt. Rock

    Sgt. Rock Member

    Additional Info:
    Network setup (server, router and ISP info)
    Frontier FiOS fiber modem (ENT), Actiontec Router/Modem, Trendnet Gigabit Switch, Server.
    Local IP addressing;
    Server IP 192.168.1.200 webserver.hedhouse.net (local network)
    Netmask 255.255.255.0
    Network 192.168.1.0
    Broadcast 192.168.1.255
    Gateway (Actiontec modem) 192.168.1.1
    DNS 8.8.8.8 and 8.8.4.4
    Website DNS Services provided by GoDaddy (see below).

    I am suspecting that Frontier FiOS is blocking SMTP and POP3 ports thru to my network, have left messages for call back on this (go figure)... Resorted to GoDaddy providing DNS for my registered website address of www.handyman-it.com and .us after many hours of troubleshooting with GoDaddy technicians (good folks). Our joint conclusion is that Frontier is blocking server ports that originate from my location. This is not my first go round with Frontier - an probably will not be the last.

    Charles.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please login to webmail with an address that you added in ISPConfig on this server and send an email to the same address that you used for the webmail login. Then post the log output from mail.log that you get for this email sending. The most likely reason for your issue is that you added the email domain in postfix main.cf somewhere, email domains or a virtual mail system may not be listed in main.cf, they exist only in the mysql database, if you add them in main.cf, then the virtual mail system gets disabled in postfix for this domain and you will not receive emails.
     
  4. Sgt. Rock

    Sgt. Rock Member

    Had a hard drive crash on the webserver, (WD 500GB - Green) had to replace it and re-install the server. Now it is on the good. Looking for it now. Will post the message soon.
     
  5. Sgt. Rock

    Sgt. Rock Member

    OK... I just tried to use the web mail app - it will not "send" anything, no actions are initiated when I press the send link at the top of the page. This is the same no matter if I use IE, Firefox or Chrome.

    This is the log entries from the time frame I attempted to send the mail:

    Feb 27 19:55:01 Webserver postfix/smtpd[29985]: connect from localhost[::1]
    Feb 27 19:55:01 Webserver dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<leMhf8ws5AAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:55:01 Webserver postfix/smtpd[29985]: lost connection after CONNECT from localhost[::1]
    Feb 27 19:55:01 Webserver postfix/smtpd[29985]: disconnect from localhost[::1]
    Feb 27 19:55:01 Webserver dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<8vQhf8ws5AAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:57:39 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30032, secured, session=<c1aUiMws/AAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:57:40 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=29 out=460
    Feb 27 19:57:40 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30034, secured, session=<+1mXiMws/gAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:57:40 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=70 out=596
    Feb 27 19:57:40 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30037, secured, session=<MECbiMwsAAAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:57:40 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30038, secured, session=<IFabiMwsAgAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:57:40 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=316 out=1500
    Feb 27 19:57:40 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=233 out=957
    Feb 27 19:57:45 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30040, secured, session=<6EXriMwsBAAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:57:45 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=32 out=456
    Feb 27 19:57:45 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30042, secured, session=<mw3tiMwsBgAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:57:45 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=44 out=563
    Feb 27 19:59:11 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30061, secured, session=<AJIIjswsCgAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:59:11 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=70 out=596
    Feb 27 19:59:11 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30063, secured, session=<JzYOjswsDAAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:59:11 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30065, secured, session=<JnMOjswsDgAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:59:11 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=120 out=721
    Feb 27 19:59:11 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=316 out=1500
    Feb 27 19:59:19 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30067, secured, session=<ALGIjswsEAAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:59:19 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=32 out=456
    Feb 27 19:59:19 Webserver dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=30069, secured, session=<6DGKjswsEgAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 19:59:20 Webserver dovecot: imap([email protected]): Disconnected: Logged out in=417 out=1930
    Feb 27 20:00:01 Webserver dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<apkFkcwsHAAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 20:00:01 Webserver dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<Y5wFkcwsHAAAAAAAAAAAAAAAAAAAAAAB>
    Feb 27 20:00:01 Webserver postfix/smtpd[30109]: connect from localhost[::1]
    Feb 27 20:00:01 Webserver postfix/smtpd[30109]: lost connection after CONNECT from localhost[::1]
    Feb 27 20:00:01 Webserver postfix/smtpd[30109]: disconnect from localhost[::1]

    I hope that this will shed some light on what is going on...

    Thanks in advance.

    CB
     
  6. Sgt. Rock

    Sgt. Rock Member

    Looking in /var/log/mailman/error I see the following entries:
    Feb 27 20:24:02 2016 mailmanctl(30838): PID unreadable in: /var/run/mailman/mailman.pid
    Feb 27 20:24:02 2016 mailmanctl(30838): [Errno 2] No such file or directory: '/var/run/mailman/mailman.pid'
    Feb 27 20:24:02 2016 mailmanctl(30838): Is qrunner even running?

    Roundcube error log has multiple PHP errors where is states "failed to load config from /var/lib/roundcube/plugins/(every file listed in directory)..."

    Do not know if that means anything but it looks like roundcube is not working correctly because of it.

    Will keep digging.
    CB
     
    Last edited: Feb 28, 2016
  7. Sgt. Rock

    Sgt. Rock Member

  8. Sgt. Rock

    Sgt. Rock Member

    Update:
    • Still unable to use web mail (roiundcube)
    • Server receives remote email / sends remote email from LAN computers to LAN computers
    • Serer does not forward mail to alternate (copy to) address
    Help is still needed..... Please let me know what is needed to resolve these issues.

    Thanks in advance.

    CB
     
  9. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Post the output from
    postconf -n|grep interfaces
     
  10. Sgt. Rock

    Sgt. Rock Member

    Command output:
    [email protected]:~# postconf -n|grep interfaces
    inet_interfaces = all
    [email protected]:~#

    interfaces is in red in the output from the command.

    CB
     
  11. Sgt. Rock

    Sgt. Rock Member

    After installing new SSL certificate, website works as expected (www.handyman-it.com) but email is not working at all now. Cannot send / receive system mail or remote mail from Thunderbird or other email programs. Will re-run commands from previous instructions and post results shortly.

    CB
     
  12. Sgt. Rock

    Sgt. Rock Member

    If config output:

    [email protected]:~# ifconfig
    enp1s5 Link encap:Ethernet HWaddr e8:de:27:a7:61:e5
    inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::eade:27ff:fea7:61e5/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1076 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1502 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:148672 (148.6 KB) TX bytes:185752 (185.7 KB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:52 errors:0 dropped:0 overruns:0 frame:0
    TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:15954 (15.9 KB) TX bytes:15954 (15.9 KB)​

    MX Toolbox can see my server, both main server and SMTP but cannot send / receieve test messages to it.

    The command for postconf:
    [email protected]:~# postconf -n|grep interfaces
    inet_interfaces = all
    [email protected]:~#

    Roundcube is still not operational... I cannot send messages as the "send" button (link) does nothing other than change color when clicked.

    Sending email from Thunderbird and Outlook from other computers, and even from my Galaxy S4 are not received or displayed on the system. I am not getting errors from attempted delivery or failed to deliver messages on any devices.

    This is becoming rather frustrating - I have followed the perfect server guide without deviation and it should be working.

    UPDATE: Just got the following error message from Roundcube:
    REQUEST CHECK FAILED
    Access to this service was denied due to failing security checks!
    Please contact your server-administrator.​

    I am unsure what this means - no help online seems to cover it.

    CB
     
  13. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Did you forwarde the ports for mail to the private ip? Is postfix running? netstat -tanp|grep 25
     
  14. Sgt. Rock

    Sgt. Rock Member

    This is the output from my server when running the command...

    [email protected]:~# netstat -tanp|grep 25
    tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 1506/master
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1506/master
    tcp6 0 0 :::25 :::* LISTEN 1506/master
    [email protected]:~#​

    Looks like the ports are open when I do a port scan.
     
  15. Sgt. Rock

    Sgt. Rock Member

    Mail now is not working at all. Roundcube does not start, hangs when you attempt. ISPConfig works, looks normal from what I can see. Testing computer hardware used for server shows no hardware problems, disk is fine. I am not sure what is wrong with the mail applications. The Apache2 service is working, my website is up and running perfectly (a good thing!) but for the life of me I cannot figure out why the mail server is not responding now.

    Anyone?
     
  16. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Can you post your master.cf?
     
  17. Sgt. Rock

    Sgt. Rock Member

    I just pulled this from the server. Used WinSCP (remote) as I am not at that location right now. Let me know if you need more info.

    #
    # 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_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_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 ${recipient}
    #
    # ====================================================================
    #
    # 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}
     
  18. Sgt. Rock

    Sgt. Rock Member

    Still not working - am considering reloading (again, ugh...) the server from scratch but would like to avoid this in fear that I would not be resolving the issue as I remain in the dark as to why it is failing to work.

    CB
     
  19. ztk.me

    ztk.me Active Member

    Please make sure you followed the Howto exactly as described.
    While looking at your master.cf I don't see the changes for submission/smtps - is there anything else you left out?
     
  20. Sgt. Rock

    Sgt. Rock Member

    Followed it exactly as stated in the HowTo guide. I think something changed when I added my SSL to ISPconfig but cannot be sure. From what I was told - that would not bugger up anything, but one does not know if the help I recieved from the SSL was correct.

    Thanks for the input

    CB
     

Share This Page