Mail sending problems

Discussion in 'ISPConfig 3 Priority Support' started by zyzzza, Oct 17, 2013.

  1. zyzzza

    zyzzza Member

    Hi,

    Centos 6.4 , followed the perfect server howto (http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-nginx-dovecot-ispconfig-3 )

    No BIND was installed , as server is used for WEB only.

    Probelm with sending mails . I can see emails in posfix queue, but the log gives :
    Code:
    Oct 17 18:09:39 localhost postfix/smtpd[21640]: connect from unknown[127.0.0.1]
    Oct 17 18:09:39 localhost postfix/smtpd[21642]: connect from unknown[127.0.0.1]
    Oct 17 18:09:49 localhost postfix/smtpd[21640]: fatal: no SASL authentication mechanisms
    Oct 17 18:09:49 localhost postfix/smtpd[21642]: fatal: no SASL authentication mechanisms
    Oct 17 18:09:50 localhost postfix/master[20252]: warning: process /usr/libexec/postfix/smtpd pid 21642 exit status 1
    Oct 17 18:09:50 localhost postfix/master[20252]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    Oct 17 18:09:50 localhost postfix/master[20252]: warning: process /usr/libexec/postfix/smtpd pid 21640 exit status 1
    Oct 17 18:10:01 localhost dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Oct 17 18:10:01 localhost postfix/smtpd[21675]: connect from localhost.localdomain[::1]
    Oct 17 18:10:03 localhost dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Oct 17 18:10:03 localhost dovecot: master: Error: service(auth): command startup failed, throttling
    Oct 17 18:10:03 localhost dovecot: log: Error: service(auth): child 21698 returned error 89 (Fatal failure)
    Oct 17 18:10:03 localhost postfix/smtpd[21675]: fatal: no SASL authentication mechanisms
    Oct 17 18:10:04 localhost postfix/master[20252]: warning: process /usr/libexec/postfix/smtpd pid 21675 exit status 1
    Oct 17 18:10:04 localhost postfix/master[20252]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    Oct 17 18:10:36 localhost dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21674, input bytes=0
    Oct 17 18:11:03 localhost dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Oct 17 18:11:03 localhost dovecot: master: Error: service(auth): command startup failed, throttling
    Oct 17 18:11:03 localhost dovecot: log: Error: service(auth): child 21709 returned error 89 (Fatal failure)
    Oct 17 18:11:33 localhost dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21674, input bytes=0
    Oct 17 18:12:03 localhost dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Oct 17 18:12:03 localhost dovecot: master: Error: service(auth): command startup failed, throttling
    Oct 17 18:12:03 localhost dovecot: log: Error: service(auth): child 21720 returned error 89 (Fatal failure)
    Oct 17 18:12:33 localhost dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21674, input bytes=0
    Oct 17 18:12:35 localhost postfix/scache[21626]: statistics: start interval Oct 17 18:08:39
    Oct 17 18:12:35 localhost postfix/scache[21626]: statistics: domain lookup hits=0 miss=2 success=0%
    Oct 17 18:12:35 localhost postfix/scache[21626]: statistics: address lookup hits=0 miss=2 success=0%
    Oct 17 18:12:35 localhost postfix/scache[21626]: statistics: max simultaneous domains=1 addresses=1 connection=1
    Oct 17 18:13:01 localhost dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=::1, lip=::1, secured
    Oct 17 18:13:03 localhost dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Oct 17 18:13:03 localhost dovecot: master: Error: service(auth): command startup failed, throttling
    Oct 17 18:13:03 localhost dovecot: log: Error: service(auth): child 21731 returned error 89 (Fatal failure)
    Oct 17 18:13:28 localhost postfix/qmgr[20255]: 4360DD80BA8: from=<[email protected]>, size=1513, nrcpt=1 (queue active)
    Oct 17 18:13:28 localhost postfix/qmgr[20255]: 4339FD80CD6: from=<[email protected]>, size=1651, nrcpt=1 (queue active)
    Oct 17 18:13:28 localhost postfix/qmgr[20255]: 44EE0D80CD8: from=<[email protected]>, size=1513, nrcpt=1 (queue active)
    Oct 17 18:13:28 localhost postfix/qmgr[20255]: 4435BD80D03: from=<[email protected]>, size=2491, nrcpt=1 (queue active)
    Oct 17 18:13:28 localhost postfix/qmgr[20255]: 43873D80F42: from=<[email protected]>, size=1643, nrcpt=1 (queue active)
    Oct 17 18:13:28 localhost postfix/qmgr[20255]: 4403ED80BB1: from=<[email protected]>, size=2491, nrcpt=1 (queue active)
    Oct 17 18:13:28 localhost postfix/qmgr[20255]: 44B7DD80CE7: from=<[email protected]>, size=1513, nrcpt=1 (queue active)
    Oct 17 18:13:28 localhost postfix/smtpd[21737]: connect from unknown[127.0.0.1]
    Oct 17 18:13:29 localhost postfix/smtpd[21739]: connect from unknown[127.0.0.1]
    Oct 17 18:13:38 localhost postfix/smtpd[21737]: fatal: no SASL authentication mechanisms
    Oct 17 18:13:39 localhost postfix/smtpd[21739]: fatal: no SASL authentication mechanisms
    Oct 17 18:13:39 localhost postfix/master[20252]: warning: process /usr/libexec/postfix/smtpd pid 21737 exit status 1
    Oct 17 18:13:39 localhost postfix/master[20252]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    Oct 17 18:13:39 localhost amavis[21226]: (21226-06) (!)FWD from <[email protected]> -> <EMAILWASHERE>, 451 4.5.0 From MTA() during fwd-connect (No greeting, dt: 11.020 s): id=21226-06
    Oct 17 18:13:39 localhost amavis[21226]: (21226-06) Blocked MTA-BLOCKED {TempFailedOpenRelay}, <[email protected]> -> <EMAILWASHERE>, Message-ID: <20131014160424.3CC76D80CEA@SASportin>, mail_id: XwgK9YSn1hGb, Hits: 4.116, si
    ze: 1512, 11361 ms
    Oct 17 18:13:39 localhost postfix/smtp[21732]: 4360DD80BA8: to=<EMAILWASHERE>, relay=127.0.0.1[127.0.0.1]:10024, delay=256156, delays=256144/0/0/11, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=21226-06 -
    Temporary MTA failure on relaying, From MTA() during fwd-connect (No greeting, dt: 11.020 s): id=21226-06 (in reply to end of DATA command))
    Oct 17 18:13:40 localhost postfix/master[20252]: warning: process /usr/libexec/postfix/smtpd pid 21739 exit status 1
    43-07 - Temporary MTA failure on relaying, From MTA() during fwd-connect (No greeting, dt: 11.016 s): id=21243-07 (in reply to end of DATA command))
    Oct 17 18:14:03 localhost dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Oct 17 18:14:03 localhost dovecot: master: Error: service(auth): command startup failed, throttling
    
    any help please ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The issue is not related to bind, the mail system is incomplete. Did you install all mail software packages as described in the perfects etup guide before you installed ispconfig?
     
  3. zyzzza

    zyzzza Member

    Actually i should had done that. However i skipped the mailman and squirrel mail . Is there any way I can keep this up and running ? (Basically there's no mails hosted there, thus i only need outgoing mail (sent form php) so be working .

    Can you let me knwo which packages might be missing ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    There is at least a dovecot file missing. You can skip mailman, but all other packages except of the mailman package should be installed. Thend download the ispconfig tar.gz again, unpack it and run the update.php script. choose yes when the updater asks if the services should be reconfigured.
     
  5. zyzzza

    zyzzza Member

    If this will be doen on a production machine will there any chance it will rewrite PHP.ini/ php-fpm configs/ Nginx configs/ ? I mean can it actually break the web functionality , as we're having lots of subdomains, some of those are manually configured. Is it possible update would break things ?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The update does not change the domain configuration of individual sites, it will change only global config files.

    Btw. If thats a production server, then you should install updates regularily anyway to keep your system safe.
     
  7. zyzzza

    zyzzza Member

    Tested on test amchine - got
    Code:
      The value of variable $myhostname is "TestOS", but should have been
      a fully qualified domain name; perhaps uname(3) did not provide such.
      You must explicitly assign a FQDN of this host to variable $myhostname
      in amavisd.conf, or fix what uname(3) provides as a host's network name!
    Starting amavisd:                                          [FAILED]
    
    
    have changed $myhostname in amavisd.conf and service started

    but emails didnt work, log said

    Code:
    dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    
    the file actually in /etc/dovecot , so just copied it to the /etc folder

    restarted services - worked !

    One more thing to resolve :
    Code:
    Oct 18 15:10:57 localhost postfix/smtp[11316]: C25204DC0AFA: to=<[email protected]>, orig_to=<root@localhost>, relay=127.0.0.1[127.0.0.1]:10024, delay=211132, delays=211127/0/0.01/4.8, 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 2EA3B4DC0B17)
    Oct 18 15:10:57 localhost postfix/qmgr[11315]: warning: qmgr_active_done_3_generic: remove C25204DC0AFA from active: No such file or directory
    Oct 18 15:11:00 localhost postfix/smtp[11339]: 2EA3B4DC0B17: to=<[email protected]>, relay=ASPMX.L.GOOGLE.COM[2a00:1450:4013:c01::1b]:25, delay=3.2, delays=0.01/0.01/0.15/3, dsn=5.1.1, status=bounced (host ASPMX.L.GOOGLE.COM[2a00:1450:40
    13:c01::1b] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 http://support.go
    ogle.com/mail/bin/answer.py?answer=6596 l4si1432205eew.161 - gsmtp (in reply to RCPT TO command))
    

    Why it send emails to [email protected] ?
    (I do have hosts like DOMAIN.LT but localhost.lt comes out of nowhere )
    Any suggestions ?

    Thanks
     

Share This Page