Current time: 05-05-2024, 02:50 AM Hello There, Guest! (LoginRegister)


Post Reply 
Weird message from postfix when sending emails to @gmail
Author Message
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #1
Weird message from postfix when sending emails to @gmail
Code:
This is the mail system at host phpqa.info.

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 mail system

<adrian.nitescu@gmail.com>: host gmail-smtp-in.l.google.com[209.85.220.47]
    said: 550-5.7.1 [86.122.121.252] The IP you're using to send mail is not
    authorized to 550-5.7.1 send email directly to our servers. Please use the
    SMTP relay at your 550-5.7.1 service provider instead. Learn more at
    550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
    7si4946767fxm.47 (in reply to end of DATA command)

86.122.121.252 is my IP the server has another one. I was trying to send via webmail. Why my IP appears there ? And how do I fix this ?

Thanks
03-14-2010 06:53 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Weird message from postfix when sending emails to @gmail
Please post the mail.log lines generated when you send such mails.
03-14-2010 10:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #3
RE: Weird message from postfix when sending emails to @gmail
Code:
Mar 14 10:34:12 phpqa postfix/smtp[25443]: 35AE22870B: to=<adrian.nitescu@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.220.47]:25, delay=66, delays=5.1/0.02/30/30, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[209.85.220.47] said: 550-5.7.1 [86.122.121.252] The IP you're using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn more at                          550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336 7si4946767fxm.47 (in reply to end of DATA command))
Mar 14 10:34:12 phpqa postfix/cleanup[25437]: D1B212870D: message-id=<20100314083412.D1B212870D@phpqa.info>
Mar 14 10:34:12 phpqa postfix/qmgr[25312]: D1B212870D: from=<>, size=3271, nrcpt=1 (queue active)
Mar 14 10:34:12 phpqa postfix/bounce[25445]: 35AE22870B: sender non-delivery notification: D1B212870D
Mar 14 10:34:12 phpqa postfix/qmgr[25312]: 35AE22870B: removed
Mar 14 10:34:13 phpqa postfix/virtual[25447]: D1B212870D: to=<adrian@nitescu.info>, relay=virtual, delay=0.14, delays=0.07/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to maildir)
Mar 14 10:34:13 phpqa postfix/qmgr[25312]: D1B212870D: removed


This is a mail header of a mail that got to gmail.

Code:
Delivered-To: adrian.nitescu@gmail.com
Received: by 10.213.4.132 with SMTP id 4cs7766ebr;
        Sun, 14 Mar 2010 06:49:31 -0700 (PDT)
Received: by 10.86.236.26 with SMTP id j26mr5213470fgh.77.1268574571587;
        Sun, 14 Mar 2010 06:49:31 -0700 (PDT)
Return-Path: <adrian@nitescu.info>
Received: from phpqa.info ([86.126.159.38])
        by mx.google.com with ESMTP id 6si4549050fxm.26.2010.03.14.06.49.31;
        Sun, 14 Mar 2010 06:49:31 -0700 (PDT)
Received-SPF: pass (google.com: domain of adrian@nitescu.info designates 86.126.159.38 as permitted sender) client-ip=86.126.159.38;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of adrian@nitescu.info designates 86.126.159.38 as permitted sender) smtp.mail=adrian@nitescu.info
Received: from admin.phpqa.info (phpqa.info.local [127.0.0.1])
    by phpqa.info (Postfix) with ESMTP id 8058E2870C
    for <adrian.nitescu@gmail.com>; Sun, 14 Mar 2010 15:47:32 +0200 (EET)
Received: from 86.122.121.253
        (SquirrelMail authenticated user adrian@nitescu.info)
        by admin.phpqa.info with HTTP;
        Sun, 14 Mar 2010 15:47:37 +0200

This line looks kinda strange in my opinion...
Code:
Received: from admin.phpqa.info (phpqa.info.local [127.0.0.1])
maybe is one of the reasons gmail refuses mail from me?

Thanks
(This post was last modified: 03-15-2010 12:01 AM by BulleT.)
03-14-2010 11:58 PM
Find all posts by this user Quote this message in a reply
foxb Offline
Junior Member
*

Posts: 37
Joined: Mar 2010
Reputation: 0
Post: #4
RE: Weird message from postfix when sending emails to @gmail
Dis you take a look in google help page?

It seems like DNS problem/misconfiguration for me...
03-15-2010 12:39 AM
Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #5
RE: Weird message from postfix when sending emails to @gmail
(03-15-2010 12:39 AM)foxb Wrote:  Dis you take a look in google help page?

It seems like DNS problem/misconfiguration for me...


Quote:http://mail.google.com/support/bin/answe...swer=10336

In order to prevent spam, Gmail refuses mail when the sending IP address does not match the sending domain. To send mail from your server to Gmail, we suggest using the SMTP relay provided by your ISP. Please note that we are unable to whitelist IP addresses or otherwise make exceptions at this time.

The doesn't tell me much. I know I have a problem with my reverse dns. But the domain who sent e-mail has the server's ip address.
The misconfiguration is somewhere in the postfix config file.

Received: from admin.phpqa.info (phpqa.info.local [127.0.0.1])

That is not normal. Postfix uses localhost to introduce himself ?
03-15-2010 01:39 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: Weird message from postfix when sending emails to @gmail
You're lookin in the wrong direction. First of all, there are some previous log entries missing in the mail.log extract you posted. Next, the "Received from 127.0.0.1" header that you don't understand, is probably postfix saying that the message was received from the webmail (although it might also be postfix saying that it has received the message from the antispam, but I can't tell without those missing log entries).

Now, the issue here is that gmail sees postfix connecting from the "86.122.121.252" IP. Therefore, either your server has this IP configured as its main outgoing IP (see "ifconfig") or your server is sNAT'ed to this address. Correct this problem and mails will start to get through...
03-15-2010 05:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #7
RE: Weird message from postfix when sending emails to @gmail
I didn't got rid of the .252 ip. If you recall for my other topic, I've change it to a new one.
86.122.121.253 is on eth0
86.126.159.38(which I want to use) is on eth0:5
03-16-2010 12:49 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: Weird message from postfix when sending emails to @gmail
Quote:86.126.159.38(which I want to use) is on eth0:5
Well, the panel doesn't map sender domains to specific outgoing addresses, as it involves a lot of effort while being generally unnecessary. Therefore, you will have to set this up manually if you want. See this post on sender domain-dependendant postfix outgoing configuration to get started.
03-16-2010 01:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #9
RE: Weird message from postfix when sending emails to @gmail
Sorry but that is way out of my point of understanding...
03-16-2010 02:35 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)