hostname & postfix problem

Discussion in 'Installation/Configuration' started by EL7oot, Mar 12, 2007.

  1. EL7oot

    EL7oot New Member

    I am having issue receive emails to first web i have created
    this is the replay from postfix on my server to yahoo mail for example
    ------------------------------------------------------

    This is the Postfix program at host server1.example.com.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The Postfix program

    <[email protected]> (expanded from <[email protected]>):
    Host or
    domain name not found. Name service error for
    name=server1.example.com
    type=AAAA: Host not found

    Message/delivery-status

    Reporting-MTA: dns; server1.example.com
    X-Postfix-Queue-ID: 2178620803A
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Wed, 1 Jan 2003 22:15:13 +0200 (EET)

    Final-Recipient: rfc822; [email protected]
    Original-Recipient: rfc822; [email protected]
    Action: failed
    Status: 5.0.0
    Diagnostic-Code: X-Postfix; Host or domain name not found. Name service
    error
    for name=server1.example.com type=AAAA: Host not found


    -------------------------------------------------------------


    i have followed Perfect setup for Suse 10.1

    my hostname is " php1.amwag.com.eg "

    output from hostname command is
    " php1 "
    output from hostname -f command is
    " php1.amwag.com.eg "
    please tell me how to fix this problem and i'll be thankful ...
     
    Last edited: Mar 12, 2007
  2. martinfst

    martinfst Member Moderator

    Please don't obfuscate [email protected]

    There's a problem with example.com, but you're not the owner of that domain. If you want help, please provide all required info. What's in the mail log?
     
  3. EL7oot

    EL7oot New Member

    this is my output of cat /var/log/mail

    =================================================
    Jan 2 00:25:00 php1 imapd: LOGOUT, user=web1_hosam, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
    Jan 2 00:25:01 php1 imapd: Connection, ip=[::ffff:127.0.0.1]
    Jan 2 00:25:01 php1 imapd: LOGIN, user=web1_hosam, ip=[::ffff:127.0.0.1], protocol=IMAP
    Jan 2 00:25:01 php1 imapd: LOGOUT, user=web1_hosam, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
    Jan 2 00:25:34 php1 postfix/smtpd[9068]: connect from web54612.mail.yahoo.com[206.190.49.182]
    Jan 2 00:25:34 php1 postfix/smtpd[9068]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
    Jan 2 00:25:34 php1 postfix/smtpd[9068]: DD14D208040: client=web54612.mail.yahoo.com[206.190.49.182]
    Jan 2 00:25:35 php1 postfix/cleanup[9073]: DD14D208040: message-id=<[email protected]>
    Jan 2 00:25:35 php1 postfix/qmgr[8831]: DD14D208040: from=<[email protected]>, size=2001, nrcpt=1 (queue active)
    Jan 2 00:25:35 php1 postfix/smtpd[9068]: disconnect from web54612.mail.yahoo.com[206.190.49.182]
    Jan 2 00:25:36 php1 postfix/smtp[9074]: DD14D208040: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=2, status=bounced (Host or domain name not found. Name service error for name=server1.example.com type=AAAA: Host not found)
    Jan 2 00:25:36 php1 postfix/cleanup[9073]: 1BB23208044: message-id=<[email protected]>
    Jan 2 00:25:36 php1 postfix/qmgr[8831]: 1BB23208044: from=<>, size=4028, nrcpt=1 (queue active)
    Jan 2 00:25:36 php1 postfix/qmgr[8831]: DD14D208040: removed
    Jan 2 00:25:42 php1 postfix/smtp[9074]: connect to d.mx.mail.yahoo.com[216.39.53.2]: server refused to talk to me: 421 Message from (82.129.141.246) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html (port 25)
    Jan 2 00:25:42 php1 postfix/smtp[9074]: connect to a.mx.mail.yahoo.com[209.191.118.103]: server refused to talk to me: 421 Message from (82.129.141.246) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html (port 25)
    Jan 2 00:25:43 php1 postfix/smtp[9074]: connect to f.mx.mail.yahoo.com[68.142.202.247]: server refused to talk to me: 421 Message from (82.129.141.246) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html (port 25)
    Jan 2 00:25:54 php1 postfix/smtp[9074]: 1BB23208044: to=<[email protected]>, relay=c.mx.mail.yahoo.com[216.39.53.3], delay=18, status=sent (250 ok dirdel)
    Jan 2 00:25:54 php1 postfix/qmgr[8831]: 1BB23208044: removed
    Jan 2 00:26:01 php1 imapd: Connection, ip=[::ffff:127.0.0.1]
    Jan 2 00:26:01 php1 imapd: LOGIN, user=web1_hosam, ip=[::ffff:127.0.0.1], protocol=IMAP
    Jan 2 00:26:01 php1 imapd: LOGOUT, user=web1_hosam, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
    Jan 2 00:28:55 php1 postfix/anvil[9071]: statistics: max connection rate 1/60s for (smtp:206.190.49.182) at Jan 2 00:25:34
    Jan 2 00:28:55 php1 postfix/anvil[9071]: statistics: max connection count 1 for (smtp:206.190.49.182) at Jan 2 00:25:34
    Jan 2 00:28:55 php1 postfix/anvil[9071]: statistics: max cache size 1 at Jan 2 00:25:34
    Jan 2 00:36:14 php1 postfix/master[8208]: terminating on signal 15
    Jan 2 00:36:14 php1 postfix/postfix-script: starting the Postfix mail system
    Jan 2 00:36:14 php1 postfix/master[10511]: daemon started -- version 2.2.9, configuration /etc/postfix
    Jan 2 00:39:27 php1 postfix/master[10511]: terminating on signal 15
    Jan 2 00:39:27 php1 postfix/postfix-script: starting the Postfix mail system
    Jan 2 00:39:27 php1 postfix/master[10942]: daemon started -- version 2.2.9, configuration /etc/postfix
    Mar 12 20:01:13 php1 freshclam[8307]: Received signal: wake up
    Mar 12 20:01:13 php1 freshclam[8307]: ClamAV update process started at Mon Mar 12 20:01:13 2007
    Mar 12 20:01:13 php1 freshclam[8307]: SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
    Mar 12 20:01:13 php1 freshclam[8307]: See the FAQ at http://www.clamav.net/support/faq for an explanation.
    Mar 12 20:01:13 php1 freshclam[8307]: main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
    Mar 12 20:01:20 php1 freshclam[8307]: Downloading daily-2824.cdiff [100%]
    Mar 12 20:01:21 php1 freshclam[8307]: Downloading daily-2825.cdiff [100%]
    Mar 12 20:01:21 php1 freshclam[8307]: daily.inc updated (version: 2825, sigs: 14717, f-level: 14, builder: sven)
    Mar 12 20:01:21 php1 freshclam[8307]: Database updated (98668 signatures) from database.clamav.net (IP: 130.59.10.34)
    Mar 12 20:01:21 php1 freshclam[8307]: --------------------------------------
    =================================================
     
  4. martinfst

    martinfst Member Moderator

    I'm a bit surprised. This mail log is dated January 2nd, So thats 2 months old. Are you sure this reflects your session?

    Also, This mail log does not look like a maillog of a system setup according to the Perfect Setup guides.
    Code:
    Jan 2 00:25:34 php1 postfix/smtpd[9068]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
    is a custom entry.
    Code:
    Mar 12 20:01:13 php1 freshclam[8307]: Received signal: wake up
    Freshclam is normally not run this way, and it certainly should not log messages in your maillog. The fact that Yahoo reject your message is because rDNS is not setup correctly. According to these logs, your sending IP address is 82.129.141.246.
    Code:
     dig -x 82.129.141.246
    
    ; <<>> DiG 9.3.2 <<>> -x 82.129.141.246
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 12487
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;246.141.129.82.in-addr.arpa.   IN      PTR
    
    ;; AUTHORITY SECTION:
    141.129.82.in-addr.arpa. 3600   IN      SOA     ns1.rayatelecom.com. dnsadmin.rayatelecom.net. 58 900 600 86400 3600
    
    ;; Query time: 1190 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Mar 12 21:05:24 2007
    ;; MSG SIZE  rcvd: 124
    
    Let's start with the beginning: Is this truly the log file of the session you tried and which failed?
     
  5. EL7oot

    EL7oot New Member

    i think the problem is with hostname
     
  6. falko

    falko Super Moderator Howtoforge Staff

    You must create a DNS record for php1.amwag.com.eg. Currently, it doesn't exist:

    Code:
    mh1:~# dig php1.amwag.com.eg
    
    ; <<>> DiG 9.2.1 <<>> php1.amwag.com.eg
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9267
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;php1.amwag.com.eg.             IN      A
    
    ;; AUTHORITY SECTION:
    amwag.com.eg.           3600    IN      SOA     bec-server. admin. 19 900 600 86400 3600
    
    ;; Query time: 575 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Thu Mar 15 14:16:15 2007
    ;; MSG SIZE  rcvd: 86
     
  7. EL7oot

    EL7oot New Member

    but i don't know how 2 creat a dns record so,

    tell me plz

    thx for replay FALKO
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Either you ask the company where you registered amwag.com.eg to create the record for you or if they offer a admin interface for this, create a A-Record for php1.amwag.com.eg that points to your server IP address.
     
  9. EL7oot

    EL7oot New Member


    ihave added A-Record for php1.amwag.com.eg but i'm sti'll can't receive emails
    now i don't know what i can do
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    It may take up to 48 hours until the DNS change becomes valid.
     

Share This Page