multi-server - mails sending/receiving not working

Discussion in 'Server Operation' started by 5t3f4n, Oct 12, 2014.

  1. 5t3f4n

    5t3f4n New Member

    hello,

    recently installed a multi server system (ISPConfig3/Apache/Postfix/Dovecot/Roundcube) on wheezy with each server (web/db/mail) on a dedicated VM and dedicated iP.

    mulit-server setup includes one web, mail and db server. after set-up services like ISPConfig 3, phpmyadmin, roundcube etc. accessible and so far working fine, only that email sending & receiving doesn't seem to work.

    2 questions related to this where i didn't find an answer to:

    1.) Accidentally installed postfix, dovecot on the master server (i.e. the server where ISPConfig main & roundcube is installed/hosted, in my set-up i called it 'web'). is it ok to remove postfix/dovecot dependencies from this server or does the multi server environment need these packages on the master/host?

    2.) debugging send/receive mail. As mentioned sending/receiveing mails is not working. Roundcube displays 'mail send successfully' but mail recipient never gets the mail. On the other direction - mails to be be received are never displayed in roundcube, and mail sender doesn't get an error returned either. Also mails that are sent from internally are not received. In etc/postfix/main.cf of the mail server the hostname = FQDN for my tld (mail.example.tld). What can i do to debug, any issues with the DNS or rather some settings in postfix or ISPConfig to be changed?

    thx in advance, all hints welcome.
     
    Last edited: Oct 12, 2014
  2. 5t3f4n

    5t3f4n New Member

    update - testing with:

    Code:
    echo "Test mail from postfix" | mail -s "Test Postfix" [email protected]
    works.

    so rather a routing/DNS setting than a mail server config issue?
     
  3. 5t3f4n

    5t3f4n New Member

    ok, got it, mails working now.

    Code:
    tail -f /var/log/syslog
    got me

    Code:
    mail dovecot: lda: Fatal: Plugin 'sieve' not found from directory /usr/lib/dovecot/modules
    
    solution was to install:
    Code:
    apt-get install dovecot-sieve
    easy ;)

    still - first question is pending:

    any hint welcome!

    thx
     
    Last edited: Oct 15, 2014
  4. 5t3f4n

    5t3f4n New Member

    well ... did un-install postfix and dovecot from master server (the one with Apache, ISPConfig3 Main & Roundcube install).

    Receiving mail still works - but sending mails is not possible anymore. When clicking 'Send Now' in Roundcube the 'Failed to send message.' error is shown.

    Then tested with postfix from mail server via:

    Code:
    echo "Test mail from postfix" | mail -s "Test Postfix" [email protected]
    and mails are sent.

    from all server-logs only one seems to indicate a mail related error, e.g. ISPConfig Cron - Log (Server : web.example.com) outputs:

    Code:
    Sun Oct 19 01:10:01 CEST 2014 sh: mailq: command not found
    Sun Oct 19 01:15:02 CEST 2014 sh: mailq: command not found
    

    any suggestions how to debug?
     
  5. 5t3f4n

    5t3f4n New Member

    Gentlemen,

    still need assistance please, anyone able to help resolving the error in roundcube 'Failed to send message.'?

    EMail receiving is working but sending is not, to test I created a new mailbox via ISPConfig 3, but also with the new mail address roundcube gives 'Failed to send message.'.

    As mentioned i'm running a multiserver set-up, below the logs from web (master) and mail (slave) server where i'd like to ask for assistance to debug - any hints welcome!

    master server system-log

    Code:
    Oct 25 17:36:01 web /USR/SBIN/CRON[30462]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Oct 25 17:37:01 web /USR/SBIN/CRON[30484]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Oct 25 17:38:01 web /USR/SBIN/CRON[30506]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Oct 25 17:39:01 web /USR/SBIN/CRON[30530]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
    Oct 25 17:39:01 web /USR/SBIN/CRON[30529]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Oct 25 17:40:01 web /USR/SBIN/CRON[30578]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Oct 25 17:40:01 web /USR/SBIN/CRON[30579]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Oct 25 17:40:01 web pure-ftpd: (?@::1) [INFO] New connection from ::1
    Oct 25 17:40:01 web pure-ftpd: (?@::1) [INFO] Logout.
    slave server mail-log

    Code:
    Oct 25 17:35:01 mail postfix/smtpd[1828]: connect from localhost[::1]
    Oct 25 17:35:01 mail postfix/smtpd[1828]: lost connection after CONNECT from localhost[::1]
    Oct 25 17:35:01 mail postfix/smtpd[1828]: disconnect from localhost[::1]
    Oct 25 17:40:01 mail dovecot: imap-login: Disconnected (disconnected before greeting, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<cQVXHEEGVAAAAAAAAAAAAAAAAAAAAAAB>
    Oct 25 17:40:01 mail dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<uh1XHEEGCAAAAAAAAAAAAAAAAAAAAAAB>
    Oct 25 17:40:01 mail postfix/smtpd[2036]: connect from localhost[::1]
    Oct 25 17:40:01 mail postfix/smtpd[2036]: lost connection after CONNECT from localhost[::1]
    Oct 25 17:40:01 mail postfix/smtpd[2036]: disconnect from localhost[::1]
    slave server mail-warn-log

    Code:
    Oct 24 14:53:36 mail postfix/smtpd[4559]: warning: unknown[111.73.45.149]: SASL login authentication failed: UGFzc3dvcmQ6
    Oct 24 14:53:36 mail postfix/smtpd[4559]: warning: Illegal address syntax from unknown[111.73.45.149] in MAIL command: <[email protected]>
    Oct 24 19:14:07 mail postfix/smtpd[14067]: warning: unknown[111.73.45.149]: SASL login authentication failed: UGFzc3dvcmQ6
    Oct 24 19:14:10 mail postfix/smtpd[14067]: warning: Illegal address syntax from unknown[111.73.45.149] in MAIL command: <[email protected]>
    Oct 24 21:48:53 mail dovecot: master: Warning: Killed with signal 15 (by pid=21979 uid=0 code=kill)
    Oct 24 21:58:30 mail dovecot: master: Warning: Killed with signal 15 (by pid=22413 uid=0 code=kill)
    Oct 24 21:58:30 mail dovecot: config: Warning: Killed with signal 15 (by pid=22413 uid=0 code=kill)
    Oct 24 21:58:30 mail dovecot: log: Warning: Killed with signal 15 (by pid=22413 uid=0 code=kill)
    Oct 24 21:58:30 mail postgrey[2115]: Couldn't unlink "/var/run/postgrey.pid" [Permission denied]
    Oct 25 03:54:29 mail postfix/smtpd[4309]: warning: hostname server.anonymous-hosting-service.com does not resolve to address 93.174.93.51
    Oct 25 03:54:29 mail postfix/smtpd[4309]: warning: non-SMTP command from unknown[93.174.93.51]: GET http://ipv4scan.com/hello/check.txt HTTP/1.1
     
  6. 5t3f4n

    5t3f4n New Member

    please,

    i'd really need some assistance here - anyone?

    thanks
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    postfix is required on the master server, so you have to install it again.
     
  8. 5t3f4n

    5t3f4n New Member

    Code:
    apt-get install postfix
    did the trick

    Thanks!
     

Share This Page