Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"The IP you're using to send mail is not authorized" -- depending on user

827 views
Skip to first unread message

Eric Jain

unread,
Apr 26, 2010, 7:17:48 PM4/26/10
to
I'm able to use Postfix to send mail to e.g. GMail accounts:

Apr 26 22:41:14 blog postfix/pickup[14939]: 49ACD8081A: uid=1000 from=<ejain>
Apr 26 22:41:14 blog postfix/cleanup[14969]: 49ACD8081A:
message-id=<20100426224114.49ACD8081A@...>
Apr 26 22:41:14 blog postfix/qmgr[4627]: 49ACD8081A: from=<ejain@...>,
size=352, nrcpt=1 (queue active)
Apr 26 22:41:15 blog postfix/smtp[14972]: 49ACD8081A:
to=<...@gmail.com>,
relay=gmail-smtp-in.l.google.com[209.85.217.51]:25, delay=1.1,
delays=0.02/0.01/0.31/0.71, dsn=2.0.0, status=sent (250 2.0.0 OK
1272321675 19si6283624gxk.13)
Apr 26 22:41:15 blog postfix/qmgr[4627]: 49ACD8081A: removed


But when I log in as a different user on the same machine, Google's
mail server no longer accepts mail (the reverse DNS lookup test
appears to fail):

Apr 26 22:38:58 blog postfix/pickup[14939]: E5ECD8081A: uid=33 from=<www-data>
Apr 26 22:38:58 blog postfix/cleanup[14951]: E5ECD8081A:
message-id=<20100426223858.E5ECD8081A@...>
Apr 26 22:38:58 blog postfix/qmgr[4627]: E5ECD8081A:
from=<www-data@...>, size=355, nrcpt=1 (queue active)
Apr 26 22:39:30 blog postfix/smtp[14953]: E5ECD8081A:
to=<...@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.67.27]:25,
delay=31, delays=0.03/0.03/0.34/31, dsn=5.7.1, status=bounced (host
gmail-smtp-in.l.google.com[74.125.67.27] said: 550-5.7.1 [...] The IP
you're using to send mail is not authorized 550-5.7.1 to send email
directly to our servers. Please use the SMTP relay at 550-5.7.1 your
service provider instead. Learn more at 550
5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
a22si14294522anp.42 (in reply to end of DATA command))
Apr 26 22:39:30 blog postfix/cleanup[14951]: 2C6138081B:
message-id=<20100426223930.2C6138081B@...>
Apr 26 22:39:30 blog postfix/bounce[14962]: E5ECD8081A: sender
non-delivery notification: 2C6138081B
Apr 26 22:39:30 blog postfix/qmgr[4627]: 2C6138081B: from=<>,
size=2826, nrcpt=1 (queue active)
Apr 26 22:39:30 blog postfix/qmgr[4627]: E5ECD8081A: removed
Apr 26 22:39:30 blog postfix/local[14964]: 2C6138081B:
to=<www-data@...>, relay=local, delay=0.02, delays=0.01/0/0/0.01,
dsn=2.0.0, status=sent (delivered to mailbox)
Apr 26 22:39:30 blog postfix/qmgr[4627]: 2C6138081B: removed


Any idea what could be going on here?

Reinaldo de Carvalho

unread,
Apr 26, 2010, 9:03:54 PM4/26/10
to
On Mon, Apr 26, 2010 at 8:17 PM, Eric Jain <eric...@gmail.com> wrote:
> I'm able to use Postfix to send mail to e.g. GMail accounts:
>
[...]

> Apr 26 22:41:14 blog postfix/cleanup[14969]: 49ACD8081A:
> message-id=<20100426224114.49ACD8081A@...>
> Apr 26 22:41:14 blog postfix/qmgr[4627]: 49ACD8081A: from=<ejain@...>,
> size=352, nrcpt=1 (queue active)

Sender <ejain@...>.

>
> But when I log in as a different user on the same machine, Google's
> mail server no longer accepts mail (the reverse DNS lookup test
> appears to fail):
>

[...]


> Apr 26 22:38:58 blog postfix/cleanup[14951]: E5ECD8081A:
> message-id=<20100426223858.E5ECD8081A@...>
> Apr 26 22:38:58 blog postfix/qmgr[4627]: E5ECD8081A:
> from=<www-data@...>, size=355, nrcpt=1 (queue active)

[...]


>
> Any idea what could be going on here?
>

Send email with apache user as sender is a bad web application design.
Create a account for each application and use a smtp library to send
email.

--
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

"Don't try to adapt the software to the way you work, but rather
yourself to the way the software works" (myself)

Eric Jain

unread,
Apr 26, 2010, 11:21:56 PM4/26/10
to
On Mon, Apr 26, 2010 at 16:17, Eric Jain <eric...@gmail.com> wrote:
> But when I log in as a different user on the same machine, Google's
> mail server no longer accepts mail (the reverse DNS lookup test
> appears to fail):

Looks like it's working now. Perhaps Google was caching the result of
the reverse DNS lookup (broken, originally) on some machines, and
tests that showed messages from one account (but not another) going
through were just coincidence. No need to blame Postfix then :-)

/dev/rob0

unread,
Apr 26, 2010, 11:25:23 PM4/26/10
to
On Mon, Apr 26, 2010 at 04:17:48PM -0700, Eric Jain wrote:
> I'm able to use Postfix to send mail to e.g. GMail accounts:
>
> Apr 26 22:41:14 blog postfix/pickup[14939]: 49ACD8081A: uid=1000 from=<ejain>
> Apr 26 22:41:14 blog postfix/cleanup[14969]: 49ACD8081A:
> message-id=<20100426224114.49ACD8081A@...>
> Apr 26 22:41:14 blog postfix/qmgr[4627]: 49ACD8081A: from=<ejain@...>,
> size=352, nrcpt=1 (queue active)
> Apr 26 22:41:15 blog postfix/smtp[14972]: 49ACD8081A:
> to=<...@gmail.com>,
> relay=gmail-smtp-in.l.google.com[209.85.217.51]:25, delay=1.1,
> delays=0.02/0.01/0.31/0.71, dsn=2.0.0, status=sent (250 2.0.0 OK
> 1272321675 19si6283624gxk.13)
> Apr 26 22:41:15 blog postfix/qmgr[4627]: 49ACD8081A: removed
>
>
> But when I log in as a different user on the same machine, Google's
> mail server no longer accepts mail (the reverse DNS lookup test
> appears to fail):

I don't understand this. The snippet above is over two minutes PRIOR
to the snippet below. When/how did rDNS fail, and how did you confirm
this?

> Apr 26 22:38:58 blog postfix/pickup[14939]: E5ECD8081A: uid=33 from=<www-data>

> Apr 26 22:38:58 blog postfix/cleanup[14951]: E5ECD8081A:
> message-id=<20100426223858.E5ECD8081A@...>
> Apr 26 22:38:58 blog postfix/qmgr[4627]: E5ECD8081A:
> from=<www-data@...>, size=355, nrcpt=1 (queue active)

> Apr 26 22:39:30 blog postfix/smtp[14953]: E5ECD8081A:
> to=<...@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.67.27]:25,
> delay=31, delays=0.03/0.03/0.34/31, dsn=5.7.1, status=bounced (host
> gmail-smtp-in.l.google.com[74.125.67.27] said: 550-5.7.1 [...] The IP
> you're using to send mail is not authorized 550-5.7.1 to send email
> directly to our servers. Please use the SMTP relay at 550-5.7.1 your
> service provider instead. Learn more at 550
> 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
> a22si14294522anp.42 (in reply to end of DATA command))

Did you read the link?

End of DATA is interesting. It suggests that the decision was made by
a content filter.

> Any idea what could be going on here?

It's quite possible that gmail is regarding a localpart of "www-data"
as a spam sign.

It is NOT possible for us to guess at what gmail is doing for spam
control. The only way to get an authoritative answer on that is to
ask them directly. The gmail postmasters are probably not reading
this list, and if they are, they're highly unlikely to reply.

Details which might have helped us make general deliverability
suggestions were munged out of the post, so only general comments can
be given.

Good FCrDNS is very important. Your IP address should resolve to
exactly one PTR record, and that value should resolve to your IP
address. Additionally that name should be your myhostname (or
smtp_helo_name if that is set.)

IP reputation is very important. If you got a sweet deal on hosting
from a provider which is infested with spammers, you might have
delivery issues. You might be a "human shield".

Look up your IP address on various DNSBLs, including but not limited
to: Spamhaus, SORBS, Spamcop, Spameatingmonkey, and Barracuda. My
guess is that you're listed in Spamhaus Zen/PBL, and for some reason
gmail is not using that for outright rejection at RCPT TO:.
--
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header

Eric Jain

unread,
Apr 27, 2010, 1:07:51 PM4/27/10
to
On Mon, Apr 26, 2010 at 20:25, /dev/rob0 <ro...@gmx.co.uk> wrote:
> I don't understand this. The snippet above is over two minutes PRIOR
> to the snippet below. When/how did rDNS fail, and how did you confirm
> this?

I started out using exim, but exim didn't read /etc/mailhost and in
consequence ended up using the wrong hostname. Switched to postfix to
address this issue (among others) and verified that messages were no
longer rejected. Then the next day I noticed that messages sent from
one particular account were still being rejected. But meanwhile
they're all going through, so I guess it wasn't a configuration issue,
but perhaps some caching thing going on at Google's end...

0 new messages