Postfix problem and few questions

Discussion in 'Installation/Configuration' started by Gimly, Jul 2, 2009.

  1. Gimly

    Gimly Member

    Hi all,

    I've 2 questions for you :

    First, I've problem with postfix, I can't receive mail on my mail server. The DNS mail.espace4you.org pointing correctly to my IP address 91.121.39.89.

    But when I want to make "telnet mail.espace4you.org 25", the connection is refused.

    This is my postconf -n :

    This is result for netstat -tap | grep smtp :

    There are no firewall setting on the server. I don't understand why it refused connection. If you have an idea, please ?

    Thank you for your answer ^^
     
    Last edited: Jul 3, 2009
  2. Mark_NL

    Mark_NL Member

    Everything seems to be running just fine:
    tcp 0 0 mail.espace4you.or:smtp benicia-w2-inf30.:63157 ESTABLISHED 27456/smtpd

    can you see anything in the logfiles when you get the connection refused?


    Where's the 2nd question? :)
     
  3. Gimly

    Gimly Member

    Yes I know, but I can't receive mail in mailbox ... :/

    Code:
    mail:~# tail -n40 /var/log/syslog
    Jul  3 13:06:11 mail postfix/smtpd[25756]: 9D0E21E40CAF: client=host222-15-dynamic.32-79-r.retail.telecomitalia.it[79.32.15.222]
    Jul  3 13:06:11 mail postfix/cleanup[25775]: 9D0E21E40CAF: message-id=<[email protected]>
    Jul  3 13:06:11 mail postfix/qmgr[27772]: 9D0E21E40CAF: from=<[email protected]>, size=671, nrcpt=1 (queue active)
    Jul  3 13:06:11 mail postfix/error[25776]: 9D0E21E40CAF: to=<[email protected]>, relay=none, delay=0.17, delays=0.17/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Jul  3 13:06:11 mail postfix/smtpd[25756]: disconnect from host222-15-dynamic.32-79-r.retail.telecomitalia.it[79.32.15.222]
    Jul  3 13:06:38 mail postfix/scache[25729]: statistics: start interval Jul  3 13:03:18
    Jul  3 13:06:38 mail postfix/scache[25729]: statistics: domain lookup hits=0 miss=2 success=0%
    Jul  3 13:06:38 mail postfix/scache[25729]: statistics: address lookup hits=0 miss=2 success=0%
    Jul  3 13:06:57 mail pop3d: Connection, ip=[::ffff:83.193.102.132]
    Jul  3 13:06:57 mail pop3d: LOGIN, [email protected], ip=[::ffff:83.193.102.132], port=[64165]
    Jul  3 13:06:58 mail pop3d: LOGOUT, [email protected], ip=[::ffff:83.193.102.132], port=[64165], top=0, retr=0, rcvd=24, sent=190, time=1
    Jul  3 13:07:01 mail /USR/SBIN/CRON[25789]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul  3 13:08:01 mail /USR/SBIN/CRON[25795]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul  3 13:08:18 mail postfix/qmgr[27772]: 08DA31E40CAA: from=<[email protected]>, size=1069, nrcpt=1 (queue active)
    Jul  3 13:08:18 mail postfix/qmgr[27772]: 786301E40C9E: from=<[email protected]>, size=2797, nrcpt=1 (queue active)
    Jul  3 13:08:18 mail postfix/qmgr[27772]: CCE8D1E40CAC: from=<[email protected]>, size=7823, nrcpt=1 (queue active)
    Jul  3 13:08:18 mail postfix/smtp[25801]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Jul  3 13:08:18 mail postfix/smtp[25802]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Jul  3 13:08:18 mail postfix/smtp[25801]: 08DA31E40CAA: to=<[email protected]>, relay=none, delay=1064, delays=1064/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Jul  3 13:08:18 mail postfix/smtp[25802]: 786301E40C9E: to=<[email protected]>, relay=none, delay=8741, delays=8741/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Jul  3 13:08:18 mail postfix/smtp[25801]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Jul  3 13:08:18 mail postfix/smtp[25801]: CCE8D1E40CAC: to=<[email protected]>, relay=none, delay=1052, delays=1052/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Jul  3 13:08:25 mail pop3d: Connection, ip=[::ffff:83.193.102.132]
    Jul  3 13:08:25 mail pop3d: LOGIN, [email protected], ip=[::ffff:83.193.102.132], port=[65475]
    Jul  3 13:08:25 mail pop3d: LOGOUT, [email protected], ip=[::ffff:83.193.102.132], port=[65475], top=0, retr=0, rcvd=24, sent=190, time=0
    Jul  3 13:09:01 mail /USR/SBIN/CRON[25808]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
    Jul  3 13:09:01 mail /USR/SBIN/CRON[25812]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul  3 13:09:31 mail postfix/anvil[25772]: statistics: max connection rate 1/60s for (smtp:64.37.95.112) at Jul  3 13:05:03
    Jul  3 13:09:31 mail postfix/anvil[25772]: statistics: max connection count 1 for (smtp:64.37.95.112) at Jul  3 13:05:03
    Jul  3 13:09:31 mail postfix/anvil[25772]: statistics: max cache size 1 at Jul  3 13:05:03
    Jul  3 13:10:01 mail /USR/SBIN/CRON[25824]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul  3 13:10:01 mail /USR/SBIN/CRON[25827]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul  3 13:10:01 mail pop3d: Connection, ip=[::ffff:127.0.0.1]
    Jul  3 13:10:01 mail pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Jul  3 13:10:01 mail imapd: Connection, ip=[::ffff:127.0.0.1]
    Jul  3 13:10:01 mail imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Jul  3 13:10:01 mail postfix/smtpd[25839]: connect from localhost.localdomain[127.0.0.1]
    Jul  3 13:10:01 mail postfix/smtpd[25839]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul  3 13:10:01 mail postfix/smtpd[25839]: disconnect from localhost.localdomain[127.0.0.1]
    Jul  3 13:11:01 mail /USR/SBIN/CRON[25860]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    mail:~#
    
    Ooops ... :D. Is there a way to add automatic zone DNS and record DNS when website and subdomain are created ?

    -- edit : I can view mails in postfix mail-queue but don't receive in mailbox. I add all log on ispconfig :

    Mail Warn Log :

    Mail Error Log :

    End of Edit ---
     
    Last edited: Jul 3, 2009
  4. Mark_NL

    Mark_NL Member

    Code:
    Jul  3 13:06:11 mail postfix/error[25776]: 9D0E21E40CAF: to=<[email protected]>, relay=none, delay=0.17, delays=0.17/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    
    there's your little bugger .. is amavisd running? :p

    ls -al | grep :10024

    should give you something like:
    tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 11519/amavisd (mast
    ...
    ...

    you're 2nd question i cannot answer because i run powerdns on 3 completely different ns servers, i don't use the dns service ispconfig can provide me.
     
  5. Gimly

    Gimly Member

    Result when I want to start amavis :

    Code:
    mail:/# /etc/init.d/amavis start
    Starting amavisd: head: cannot open `/etc/mailname' for reading: No such file or directory   amavisd-new
    and for netstat -tap | grep amavis :

    any idea ?

    Thank you for your help Mark :)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Create a file:

    /etc/mailname

    with just one line with the hostname of your server
     
  7. Gimly

    Gimly Member

    Thanks Till now it work, can you answer to my question ?

    Thank you :)
     
  8. Gimly

    Gimly Member

    Arf, the delay to receive my mail is too long. I don't understand why. For example, when I test mail from different server, the delay is near 48h ... :/

    Do you want new error, warn and mail logs from my mail server ?
     
  9. Mark_NL

    Mark_NL Member

    send a mail and when you do that tail -f the mail.log file to see if there are any mails incomming from the sending server, and check what happens .. (you can post them here ;))
     
  10. Gimly

    Gimly Member

    This is the return when I send mail :

    Amavis crash after 2 sec ...

     
  11. falko

    falko Super Moderator ISPConfig Developer

    It seems as if your system doesn't have enough free memory. What's the output of
    Code:
    free
    ?
     
  12. Mark_NL

    Mark_NL Member

    Jul 7 13:25:12 mail amavis[31507]: (!)Net::Server: 2009/07/07-13:25:12 Couldn't fork: [Can't allocate memory]\n\n at line 293 in file /usr/share/perl5/Net/Server.pm

    Looks like you're running OOM :(

    when a new mail is incomming, it sets amavisd to work, that wants to fork some processes, but it can't, because it runs out of memory.
     
  13. Gimly

    Gimly Member

    I've increase memory on my mail server virtual machine and now it work fine ^^.

    Thank you for your help Till, Falko and Mark :)
     

Share This Page