Relay access denied for incoming mail

Discussion in 'General' started by jacobhenry, Jan 22, 2007.

  1. jacobhenry

    jacobhenry New Member

    I have been reading through the posts and was unable to find a solution to my particular problem. This is what I get when I try to send an email to myself from my indiana.edu address.

    Code:
    The original message was received at Mon, 22 Jan 2007 08:00:32 -0500 (EST) from stjoseph.uits.indiana.edu [129.79.1.78]
    
       ----- The following addresses had permanent fatal errors ----- <[email protected]>
        (reason: 554 <[email protected]>: Relay access denied)
    
       ----- Transcript of session follows ----- ... while talking to mail.scratchco.com.:
    >>> DATA
    <<< 554 <[email protected]>: Relay access denied
    554 5.0.0 Service unavailable
    <<< 554 Error: no valid recipients
    
    and this is the log at /var/log/mail.log

    Code:
    user@server1:~# tail -n 20 /var/log/mail.log
    Jan 22 07:57:35 server1 postfix/smtpd[24177]: NOQUEUE: reject: RCPT from julesburg.uits.indiana.edu[129.79.1.75]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<julesburg.uits.indiana.edu>
    Jan 22 07:57:36 server1 postfix/smtpd[24177]: disconnect from julesburg.uits.indiana.edu[129.79.1.75]
    Jan 22 07:59:40 server1 postfix/smtpd[24211]: connect from julesburg.uits.indiana.edu[129.79.1.75]
    Jan 22 07:59:41 server1 postfix/smtpd[24211]: NOQUEUE: reject: RCPT from julesburg.uits.indiana.edu[129.79.1.75]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<julesburg.uits.indiana.edu>
    Jan 22 07:59:41 server1 postfix/smtpd[24211]: disconnect from julesburg.uits.indiana.edu[129.79.1.75]
    Jan 22 08:00:36 server1 postfix/smtpd[24211]: connect from col2.mail.irmc.com[63.146.166.71]
    Jan 22 08:00:37 server1 postfix/smtpd[24211]: NOQUEUE: reject: RCPT from col2.mail.irmc.com[63.146.166.71]: 554 <[email protected]>: Relay access denied; from=<> to=<[email protected]> proto=SMTP helo=<col2.mail.irmc.com>
    Jan 22 08:00:37 server1 postfix/smtpd[24211]: disconnect from col2.mail.irmc.com[63.146.166.71]
    Jan 22 08:00:37 server1 postfix/smtpd[24211]: connect from col2.mail.irmc.com[63.146.166.71]
    Jan 22 08:00:37 server1 postfix/smtpd[24211]: NOQUEUE: reject: RCPT from col2.mail.irmc.com[63.146.166.71]: 554 <[email protected]>: Relay access denied; from=<> to=<[email protected]> proto=SMTP helo=<col2.mail.irmc.com>
    Jan 22 08:00:37 server1 postfix/smtpd[24211]: disconnect from col2.mail.irmc.com[63.146.166.71]
    Jan 22 08:02:50 server1 imaplogin: Connection, ip=[::ffff:202.125.216.75]
    Jan 22 08:02:50 server1 imaplogin: LOGIN, user=web1_jacobhenry, ip=[::ffff:202.125.216.75], protocol=IMAP
    Jan 22 08:02:51 server1 imaplogin: Connection, ip=[::ffff:202.125.216.75]
    Jan 22 08:02:52 server1 imaplogin: LOGIN, user=web1_jacobhenry, ip=[::ffff:202.125.216.75], protocol=IMAP
    Jan 22 08:03:40 server1 imaplogin: LOGOUT, user=web1_jacobhenry, ip=[::ffff:202.125.216.75], headers=0, body=0, time=50
    Jan 22 08:03:55 server1 imaplogin: DISCONNECTED, user=web1_jacobhenry, ip=[::ffff:202.125.216.75], headers=0, body=0, time=63
    Jan 22 08:03:57 server1 postfix/anvil[24179]: statistics: max connection rate 2/60s for (smtp:63.146.166.71) at Jan 22 08:00:37
    Jan 22 08:03:57 server1 postfix/anvil[24179]: statistics: max connection count 1 for (smtp:129.79.1.75) at Jan 22 07:57:35
    Jan 22 08:03:57 server1 postfix/anvil[24179]: statistics: max cache size 2 at Jan 22 08:00:36
    
    When I try to send an email to myself using my scratchco.com email, I do not get a response but here is my log output

    Code:
    user@server1:~# tail -n 20 /var/log/mail.log
    Jan 22 08:08:21 server1 postfix/cleanup[24380]: 2FF9E2C412D: message-id=<00de01c73e26$861dae80$92590b80$@com>
    Jan 22 08:08:21 server1 postfix/qmgr[23821]: 2FF9E2C412D: from=<[email protected]>, size=2579, nrcpt=1 (queue active)
    Jan 22 08:08:22 server1 postfix/smtpd[24389]: warning: 74.130.0.129: address not listed for hostname 74-129-0-129.dhcp.insightbb.com
    Jan 22 08:08:22 server1 postfix/smtpd[24389]: connect from unknown[74.130.0.129]
    Jan 22 08:08:22 server1 postfix/smtp[24388]: warning: host mail.scratchco.com[74.130.0.129] greeted me with my own hostname server1.scratchcohosting.com
    Jan 22 08:08:22 server1 postfix/smtp[24388]: warning: host mail.scratchco.com[74.130.0.129] replied to HELO/EHLO with my own hostname server1.scratchcohosting.com
    Jan 22 08:08:22 server1 postfix/smtp[24388]: 2FF9E2C412D: to=<[email protected]>, relay=mail.scratchco.com[74.130.0.129], delay=2, status=bounced (mail for scratchco.com loops back to myself)
    Jan 22 08:08:22 server1 postfix/smtpd[24389]: disconnect from unknown[74.130.0.129]
    Jan 22 08:08:22 server1 postfix/cleanup[24380]: 4B2972C4132: message-id=<[email protected]>
    Jan 22 08:08:22 server1 postfix/qmgr[23821]: 4B2972C4132: from=<>, size=4382, nrcpt=1 (queue active)
    Jan 22 08:08:22 server1 postfix/qmgr[23821]: 2FF9E2C412D: removed
    Jan 22 08:08:22 server1 postfix/smtpd[24389]: warning: 74.130.0.129: address not listed for hostname 74-129-0-129.dhcp.insightbb.com
    Jan 22 08:08:22 server1 postfix/smtpd[24389]: connect from unknown[74.130.0.129]
    Jan 22 08:08:22 server1 postfix/smtp[24388]: warning: host mail.scratchco.com[74.130.0.129] greeted me with my own hostname server1.scratchcohosting.com
    Jan 22 08:08:22 server1 postfix/smtp[24388]: warning: host mail.scratchco.com[74.130.0.129] replied to HELO/EHLO with my own hostname server1.scratchcohosting.com
    Jan 22 08:08:22 server1 postfix/smtp[24388]: 4B2972C4132: to=<[email protected]>, relay=mail.scratchco.com[74.130.0.129], delay=0, status=bounced (mail for scratchco.com loops back to myself)
    Jan 22 08:08:22 server1 postfix/smtpd[24389]: disconnect from unknown[74.130.0.129]
    Jan 22 08:08:22 server1 postfix/qmgr[23821]: 4B2972C4132: removed
    Jan 22 08:08:22 server1 postfix/smtpd[24376]: disconnect from unknown[202.125.216.75]
    Jan 22 08:08:50 server1 imaplogin: LOGOUT, user=web1_jacobhenry, ip=[::ffff:202.125.216.75], headers=0, body=0, time=33
    
    Any help would be appreciated.

    Also, in the first log I see someone trying to relay as [email protected]. Does this present a threat?
     
    Last edited: Jan 22, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add the line:

    scratchco.com

    at the ond of the file:

    /etc/postfix/local-host-names

    and restart postfix.
     
  3. Craig

    Craig New Member

    If that is not an account actually on your system, it could be someone trying to use your server for spoofing or using it as an open relay hoping to source spam from your server.

    Was the relay attempt denied?
     

Share This Page