Postfix problems

Discussion in 'Server Operation' started by nenad, Nov 22, 2005.

  1. nenad

    nenad Member

    This is what I got when I try to send email to new accounts on fast-server.homelinux.com

    **********************************************
    ** THIS IS A WARNING MESSAGE ONLY **
    ** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
    **********************************************

    The original message was received at Thu, 24 Nov 2005 05:58:57 +0100 (CET)
    from [10.40.250.236]

    ----- Transcript of session follows -----
    <[email protected]>,<[email protected]>,<[email protected]>... Deferred: Interrupted system call
    Warning: message still undelivered after 4 hours
    Will keep trying until message is 5 days old
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I checked your DNS records, they seem to be ok, they point to 87.116.140.158.

    No.

    No.

    You need not use the DNS Manager of ISPConfig at all because the dyndns.org name servers handle fast-server.homelinux.com.

    I've just done a
    Code:
    telnet fast-server.homelinux.com 25
    , and it looks ok.

    Try to send a mail to your ISPConfig server and have a look at the mail log if you can find anything related to that email.
     
  3. nenad

    nenad Member

    OK,

    when I login into ISPConfig, and send email through UebiMiau to root@localhost,
    here's what I got:


    Nov 25 05:16:26 fast-server postfix/smtpd[13594]: disconnect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 05:16:26 fast-server ipop3d[13599]: pop3 service init from 127.0.0.1
    Nov 25 05:16:26 fast-server ipop3d[13599]: Login user=web2_nenad host=fast-server.homelinux.com [127.0.0.1]
    nmsgs=0/0
    Nov 25 05:16:26 fast-server ipop3d[13599]: Logout user=web2_nenad host=fast-server.homelinux.com [127.0.0.1
    ] nmsgs=0 ndele=0
    Nov 25 05:16:27 fast-server postfix/local[13598]: A69D24276: to=<[email protected]>, orig_to=<ro
    ot@localhost>, relay=local, delay=1, status=sent (delivered to mailbox)
    Nov 25 05:16:27 fast-server postfix/qmgr[8713]: A69D24276: removed

    --------------------------------------------------------------
    And email reached inbox for root@localhost

    and header is :

    From "Nenad - Fast Server" <[email protected]>
    To [email protected]
    Date Fri, 25 Nov 2005 5:09:16 +0100
    Subject test

    ----------------------------------------------------------------------
    Strange enough, when I do email chechk with DNS Stuff, evrything seems to be ok?
    http://www.dnsstuff.com/tools/[email protected]
    ********************************************************
    Getting MX record for fast-server.homelinux.com (from local DNS server, may be cached)... Got it!

    Host Preference IP(s) [Country]
    fast-server.homelinux.com. 5 87.116.140.158 [CS]
    fast-server.homelinux.com. 10 87.116.140.158 [CS]

    Trying to connect to all mailservers:

    fast-server.homelinux.com. - 87.116.140.158 [Successful connect: Got a good response [250 Ok]]
    fast-server.homelinux.com. - 87.116.140.158 [Successful connect: Got a good response [250 Ok]]
    **********************************************************
    Nov 25 05:25:57 fast-server postfix/smtpd[13737]: connect from test.DNSstuff.com[66.36.241.109]
    Nov 25 05:25:58 fast-server postfix/smtpd[13737]: 2CDF34276: client=test.DNSstuff.com[66.36.241.109]
    Nov 25 05:25:58 fast-server postfix/smtpd[13737]: disconnect from test.DNSstuff.com[66.36.241.109]
    Nov 25 05:25:58 fast-server postfix/smtpd[13737]: connect from test.DNSstuff.com[66.36.241.109]
    Nov 25 05:25:59 fast-server postfix/smtpd[13737]: 2CF7F4276: client=test.DNSstuff.com[66.36.241.109]
    Nov 25 05:25:59 fast-server postfix/smtpd[13737]: disconnect from test.DNSstuff.com[66.36.241.109]
    *********************************************************
    So, it seems it's not a DNS problem.

    It looks to me that Postfix accepts connections, but somethings goes wrong when it has to accept email ---> create it on localhost in mailbox

    *********************************************************

    Here is what happened when I sent email from UebiMiau:

    Nov 25 05:32:27 fast-server postfix/smtpd[13849]: connect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 05:32:27 fast-server postfix/smtpd[13849]: 2D24F4276: client=fast-server.homelinux.com[127.0.0.1]
    Nov 25 05:32:27 fast-server postfix/cleanup[13851]: 2D24F4276: message-id=<[email protected]>
    Nov 25 05:32:27 fast-server postfix/qmgr[8713]: 2D24F4276: from=<[email protected]>, size=822, nrcpt=1 (queue active)
    Nov 25 05:32:27 fast-server postfix/smtpd[13849]: disconnect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 05:32:27 fast-server ipop3d[13853]: pop3 service init from 127.0.0.1
    Nov 25 05:32:27 fast-server ipop3d[13853]: Login user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=0/0
    Nov 25 05:32:27 fast-server ipop3d[13853]: Logout user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=0 ndele=0
    Nov 25 05:32:28 fast-server postfix/smtp[13852]: 2D24F4276: to=<[email protected]>, orig_to=<[email protected]>, relay=mail.dyndns.com[63.208.196.3], delay=1, status=bounced (host mail.dyndns.com[63.208.196.3] said: 550 5.1.1 <[email protected]>... User unknown (in reply to RCPT TO command))
    Nov 25 05:32:28 fast-server postfix/cleanup[13851]: 5C214427B: message-id=<[email protected]>
    Nov 25 05:32:28 fast-server postfix/qmgr[8713]: 2D24F4276: removed
    Nov 25 05:32:28 fast-server postfix/qmgr[8713]: 5C214427B: from=<>, size=2956, nrcpt=1 (queue active)
    Nov 25 05:32:29 fast-server postfix/smtp[13852]: 5C214427B: to=<[email protected]>, orig_to=<[email protected]>, relay=mail.dyndns.com[63.208.196.3], delay=1, status=bounced (host mail.dyndns.com[63.208.196.3] said: 550 5.1.1 <[email protected]>... User unknown (in reply to RCPT TO command))
    Nov 25 05:32:29 fast-server postfix/qmgr[8713]: 5C214427B: removed
     
    Last edited: Nov 25, 2005
  4. nenad

    nenad Member

    Nov 25 05:45:42 fast-server postfix/smtpd[14052]: connect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 05:45:42 fast-server postfix/smtpd[14052]: C79AE42DB: client=fast-server.homelinux.com[127.0.0.1]
    Nov 25 05:45:42 fast-server postfix/cleanup[14055]: C79AE42DB: message-id=<[email protected]>
    Nov 25 05:45:42 fast-server postfix/smtpd[14052]: disconnect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 05:45:42 fast-server ipop3d[14056]: pop3 service init from 127.0.0.1
    Nov 25 05:45:42 fast-server ipop3d[14056]: Login user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=0/0
    Nov 25 05:45:42 fast-server ipop3d[14056]: Logout user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=0 ndele=0
    Nov 25 05:45:42 fast-server postfix/qmgr[8713]: C79AE42DB: from=<[email protected]>, size=827, nrcpt=1 (queue active)
    Nov 25 05:45:44 fast-server postfix/smtp[14057]: C79AE42DB: to=<[email protected]>, orig_to=<[email protected]>, relay=mail.dyndns.com[63.208.196.3], delay=2, status=bounced (host mail.dyndns.com[63.208.196.3] said: 550 5.1.1 <[email protected]>... User unknown (in reply to RCPT TO command))
    Nov 25 05:45:44 fast-server postfix/cleanup[14055]: 2A92F42E0: message-id=<[email protected]>
    Nov 25 05:45:44 fast-server postfix/qmgr[8713]: C79AE42DB: removed
    Nov 25 05:45:44 fast-server postfix/qmgr[8713]: 2A92F42E0: from=<>, size=2976, nrcpt=1 (queue active)
    Nov 25 05:45:44 fast-server postfix/smtp[14057]: 2A92F42E0: to=<[email protected]>, orig_to=<[email protected]>, relay=mail.dyndns.com[63.208.196.3], delay=0, status=bounced (host mail.dyndns.com[63.208.196.3] said: 550 5.1.1 <[email protected]>... User unknown (in reply to RCPT TO command))
    Nov 25 05:45:45 fast-server postfix/qmgr[8713]: 2A92F42E0: removed
     
  5. nenad

    nenad Member

    Do you see this (when I sent email to my self from UebiMiau):

    Nov 25 05:45:44 fast-server postfix/smtp[14057]: C79AE42DB: to=<[email protected]>,

    There's no user [email protected]
    It's wrong, it has to be: web2_nenad@[B]fast-server[/b].homelinux.com

    So, it's true that that user don't exist:
    Nov 25 05:45:44 fast-server postfix/smtp[14057]: 2A92F42E0: to=<[email protected]>, orig_to=<[email protected]>, relay=mail.dyndns.com[63.208.196.3], delay=0, status=bounced (host mail.dyndns.com[63.208.196.3] said: 550 5.1.1 <[email protected]>... User unknown (in reply to RCPT TO command))
    Nov 25 05:45:45 fast-server postfix/qmgr[8713]: 2A92F42E0: removed
     
  6. nenad

    nenad Member


    Exactly what did you mean by that? Which email is an email of my ISPConfig server? root@localhost?
     
  7. nenad

    nenad Member

    This is happenin now:

    When I send from UiebiMiau:
    to [email protected] from [email protected]
    -------------------------------------------------------------
    Nov 25 06:43:11 fast-server postfix/smtpd[17105]: connect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 06:43:11 fast-server postfix/smtpd[17105]: 48A0542DF: client=fast-server.homelinux.com[127.0.0.1]
    Nov 25 06:43:11 fast-server postfix/cleanup[17108]: 48A0542DF: message-id=<[email protected]>
    Nov 25 06:43:11 fast-server postfix/qmgr[16740]: 48A0542DF: from=<[email protected]>, size=827, nrcpt=1 (queue active)
    Nov 25 06:43:11 fast-server postfix/smtpd[17105]: disconnect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 06:43:11 fast-server ipop3d[17249]: pop3 service init from 127.0.0.1
    Nov 25 06:43:11 fast-server ipop3d[17249]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
    Nov 25 06:43:11 fast-server ipop3d[17249]: Login user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=2/2
    Nov 25 06:43:11 fast-server ipop3d[17249]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
    Nov 25 06:43:11 fast-server ipop3d[17249]: Logout user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=2 ndele=0
    Nov 25 06:43:11 fast-server sendmail[17255]: jAP5hBoW017255: from=web2_nenad, size=105, class=0, nrcpts=1, msgid=<[email protected]>, relay=web2_nenad@localhost
    Nov 25 06:43:11 fast-server postfix/smtpd[17105]: connect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 06:43:11 fast-server postfix/smtpd[17105]: setting up TLS connection from fast-server.homelinux.com[127.0.0.1]
    Nov 25 06:43:12 fast-server postfix/smtpd[17105]: TLS connection established from fast-server.homelinux.com[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Nov 25 06:43:12 fast-server sendmail[17255]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
    Nov 25 06:43:12 fast-server postfix/smtpd[17105]: 3150F42E0: client=fast-server.homelinux.com[127.0.0.1], [email protected]
    Nov 25 06:43:12 fast-server postfix/cleanup[17108]: 3150F42E0: message-id=<[email protected]>
    Nov 25 06:43:12 fast-server postfix/qmgr[16740]: 3150F42E0: from=<[email protected]>, size=775, nrcpt=1 (queue active)
    Nov 25 06:43:12 fast-server sendmail[17255]: jAP5hBoW017255: to=admispconfig@localhost, ctladdr=web2_nenad (10002/10002), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30105, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 3150F42E0)
    Nov 25 06:43:12 fast-server postfix/smtpd[17105]: disconnect from fast-server.homelinux.com[127.0.0.1]
    Nov 25 06:43:12 fast-server postfix/local[17164]: 48A0542DF: to=<[email protected]>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)
    Nov 25 06:43:12 fast-server postfix/qmgr[16740]: 48A0542DF: removed
    Nov 25 06:43:12 fast-server postfix/local[17118]: 3150F42E0: to=<[email protected]>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Nov 25 06:43:12 fast-server postfix/qmgr[16740]: 3150F42E0: removed
     
  8. nenad

    nenad Member

    Nov 25 06:44:38 fast-server ipop3d[17299]: pop3 service init from 127.0.0.1
    Nov 25 06:44:38 fast-server ipop3d[17299]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
    Nov 25 06:44:38 fast-server ipop3d[17299]: Login user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=3/3
    Nov 25 06:44:38 fast-server ipop3d[17299]: Mailbox vulnerable - directory /var/spool/mail must have 1777 protection
    Nov 25 06:44:38 fast-server ipop3d[17299]: Logout user=web2_nenad host=fast-server.homelinux.com [127.0.0.1] nmsgs=3 ndele=0
     
  9. nenad

    nenad Member

    ::Update

    OK, it seems that I can sent localy from

    [email protected]

    to

    [email protected]

    when I use UebiMiau or Webmin

    I also added in Postfix
    Domain mapping lookup tables hash:/etc/postfix/virtual
    and
    Domains to perform virtual mapping for
    virtual
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer


    If you have ISPConfig installed, the Domain table is /etc/postfix/local-host-names

    ISPCOnfig wont work if you specify hash:/etc/postfix/virtual in your main.cf
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Try to send an email from an external address (e.g. Gmail, Hotmail, ...) to an email address you created in ISPConfig!

    From reading your posts I guess you have made a lot of manual changes to your system, especially /etc/postfix/main.cf. It might be a good idea to re-install the system exactly as described in the Perfect Setup and only make manual changes if you know exactly what you're doing.
     
  12. nenad

    nenad Member

    OK.
    I made changes only after determining that email is not functioning properly.

    But I will folow your advice and reinstall everything.

    It's anyway testing platform / server, so it's no big deal to re-install erverything OS and ISPConfig.

    Thanx for your support.
     
  13. nenad

    nenad Member

    yes, that's what I am doing all the time.

    Here's what I get:

    -------------------------------------
    Return-Path: <[email protected]>
    Received: from localhost (localhost)
    by ns.sbb.co.yu (8.12.10/8.12.10) id jAP8oIWj000812;
    Fri, 25 Nov 2005 09:58:56 +0100 (CET)
    Date: Fri, 25 Nov 2005 09:58:56 +0100 (CET)
    From: Mail Delivery Subsystem <[email protected]>
    Message-Id: <[email protected]>
    To: <[email protected]>
    Subject: Warning: could not send message for past 4 hours
    Auto-Submitted: auto-generated (warning-timeout)
    X-Antivirus: AVG for E-mail 7.1.362 [267.13.7/182]
    Mime-Version: 1.0
    Content-Type: multipart/mixed; boundary="=======AVGMAIL-4386F25A49F6======="

    --=======AVGMAIL-4386F25A49F6=======
    Content-Type: multipart/report; report-type=delivery-status; boundary="jAP8oIWj000812.1132909136/ns.sbb.co.yu"

    --jAP8oIWj000812.1132909136/ns.sbb.co.yu
    Content-Type: text/plain

    **********************************************
    ** THIS IS A WARNING MESSAGE ONLY **
    ** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
    **********************************************

    The original message was received at Fri, 25 Nov 2005 05:54:42 +0100 (CET)
    from [10.40.250.236]

    ----- Transcript of session follows -----
    <[email protected]>... Deferred: Interrupted system call
    Warning: message still undelivered after 4 hours
    Will keep trying until message is 5 days old

    --jAP8oIWj000812.1132909136/ns.sbb.co.yu
    Content-Type: message/delivery-status

    Reporting-MTA: dns; ns.sbb.co.yu
    Arrival-Date: Fri, 25 Nov 2005 05:54:42 +0100 (CET)
    Content-Type: text/plain

    Final-Recipient: RFC822; [email protected]
    Action: delayed
    Status: 4.4.1
    Remote-MTA: DNS; fast-server.homelinux.com
    Last-Attempt-Date: Fri, 25 Nov 2005 09:58:56 +0100 (CET)
    Will-Retry-Until: Wed, 30 Nov 2005 05:54:42 +0100 (CET)

    --jAP8oIWj000812.1132909136/ns.sbb.co.yu
    Content-Type: message/rfc822

    Return-Path: <[email protected]>
    Received: from p4 ([10.40.250.236])
    by ns.sbb.co.yu (8.12.10/8.12.10) with SMTP id jAP4sgiS015324
    for <[email protected]>; Fri, 25 Nov 2005 05:54:42 +0100 (CET)
    Message-ID: <007601c5f17c$5a1a5100$ecfa280a@p4>
    From: "Nenad Bulatovic \(Limit Line DOO\)" <[email protected]>
    To: "Nenad Bulatovic - Fast Server" <[email protected]>
    Subject:
    Date: Fri, 25 Nov 2005 05:54:38 +0100
    MIME-Version: 1.0
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: Microsoft Outlook Express 6.00.2900.2180
    Disposition-Notification-To: "Nenad Bulatovic \(Limit Line DOO\)" <[email protected]>
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    X-Sbb.co.yu-MailScanner-Information: Please contact the ISP for more information
    X-Sbb.co.yu-MailScanner: Found to be clean
    X-Sbb.co.yu-MailScanner-From: [email protected]
    Content-Type: multipart/alternative; boundary="----=_NextPart_000_0071_01C5F184.B8C013E0"

    ------=_NextPart_000_0071_01C5F184.B8C013E0
    Content-Type: text/plain; charset=iso-8859-1
    Content-Transfer-Encoding: quoted-printable


    Best regards,
    =20
    Nenad Bulatovic
    =20
    "Limit Line" DOO
    Bul. Slobodana Jovanovica 48
    21000 Novi Sad
    Yugoslavia (Serbia & Montenegro)
    =20
    Tel: +381 21 402 404 (8 - 16h)
    Fax: +381 21 402 404 (00 - 24h)
    GSM: +381 63 533 629 (08 - 22h) * All times are CEST
    e-mail: [email protected] or [email protected]
    -------------------------------------------------------------------------=
    -------------------------------------------
    Limit Line - Marketing Agency - Connecting People & Business since 1993
    ------=_NextPart_000_0071_01C5F184.B8C013E0
    Content-Type: text/html; charset=iso-8859-1
    Content-Transfer-Encoding: quoted-printable

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Best regards,<BR>&nbsp;<BR>Nenad=20
    Bulatovic<BR>&nbsp;<BR>"Limit Line" DOO<BR>Bul. Slobodana Jovanovica =
    48<BR>21000=20
    Novi Sad<BR>Yugoslavia (Serbia &amp; Montenegro)<BR>&nbsp;<BR>Tel: +381 =
    21 402=20
    404 (8 - 16h)<BR>Fax: +381 21 402 404 (00 - 24h)<BR>GSM: +381 63 533 629 =
    (08 -=20
    22h)&nbsp;&nbsp;&nbsp; * All times are CEST<BR>e-mail: <A=20
    href=3D"mailto:[email protected]">[email protected]</A> or <A=20
    href=3D"mailto:[email protected]">[email protected]</A><BR>----=
    -------------------------------------------------------------------------=
    ---------------------------------------<BR>Limit=20
    Line - Marketing Agency - Connecting People &amp; Business since=20
    1993</FONT></DIV></BODY></HTML>

    ------=_NextPart_000_0071_01C5F184.B8C013E0--
    --jAP8oIWj000812.1132909136/ns.sbb.co.yu--
    --=======AVGMAIL-4386F25A49F6=======
    Content-Type: text/plain; x-avg=cert; charset=us-ascii
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    Content-Description: "AVG certification"

    No virus found in this incoming message.
    Checked by AVG Free Edition.
    Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24-11-2005

    --=======AVGMAIL-4386F25A49F6=======--
     
  14. nenad

    nenad Member

    OK,

    I set it up to hash:/etc/postfix/virtual in your main.cf after I noticed that email system is not functioning properly.

    Anyway, I will re-install complete system
     
  15. nenad

    nenad Member

    OK,

    I reinstalled complete OS and ISP Config.

    Same problem.
    I can sent email.

    But I can't receive any emails...?
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Can you receive emails when you set the smtp server of you mailclient to your server? If not, what message appears in your mail log in the moment you send the email?
     
  17. nenad

    nenad Member

    I am not quite sure that I understand this.

    OK, when I send email (using email client (Outlook express), from another PC - not from ISP server) from my nonISP account ([email protected]) to ISP account [email protected] nothing happens.

    There's no trace of anything in /var/log/maillog.

    Later, in few hours I receive something like this:
    -----------------------------------------------------------------------
    The original message was received at Tue, 22 Nov 2005 18:46:28 +0100 (CET)
    from [10.40.250.236]

    ----- The following addresses had permanent fatal errors -----
    <[email protected]>

    ----- Transcript of session follows -----
    <[email protected]>... Deferred: Interrupted system call
    Message could not be delivered for 5 days
    Message will be deleted from queue
    -------------------------------------------------------------------

    I CAN sent email using email client from another PC using any of ISPConfig email accounts, eg: [email protected]
     
  18. nenad

    nenad Member

  19. falko

    falko Super Moderator Howtoforge Staff

    Did you enable PHP for that web site in ISPConfig?
     
  20. nenad

    nenad Member

    No, I forgot to do that :)

    But, when I enabled it in ISPConfig , apache still don't execute PHP.
    Then I deleted it.

    Then I wanted to add it again, but following error occured:
    And the website is deleted?
    And user is deleted, and other sites are deleted.....

    In management ---> server --> Settings:
    Hostname: fast-server
    Domain: homelinux.com

    Is that a problem?
     
    Last edited: Nov 28, 2005

Share This Page