Postfix+Gmail configuration not working except from sending Mail Delivery Status Report

334 views
Skip to first unread message

RobPower

unread,
Mar 12, 2009, 9:25:32 AM3/12/09
to Gmail-Users
Hello there.
I have a problem configuring my home-server (Ubuntu) with postfix.
The main usage I need postfix for is to send email alerts to an email
address if monitoring programs found any problem with the server.
I tried to configure it to use a gmail account to send it from,
because I think it could be more professional if more future will be
needed.
I followed tutorial about configuration, including the part about
certificates. The actual situation is the following:

If i try to send an email using sendmail -t sender-...@gmail.com -
bv desti...@gmail.com, the console answers:
Mail Delivery Status Report will be mailed to <sender-
user...@gmail.com>.
and /var/log/mail.log reports:

Mar 12 14:15:29 home-server postfix/pickup[24716]: 061CCA079: uid=0
from=<sender-...@gmail.com>
Mar 12 14:15:29 home-server postfix/cleanup[24964]: 061CCA079: message-
id=<200903121315...@home-server.localdomain>
Mar 12 14:15:29 home-server postfix/qmgr[24718]: 061CCA079:
from=<sender-...@gmail.com>, size=294, nrcpt=1 (queue active)
Mar 12 14:15:37 home-server postfix/smtp[24966]: 061CCA079:
to=<desti...@gmail.com>, relay=smtp.gmail.com[209.85.135.111]:587,
delay=8.9, delays=0.06/0.03/8/0.83, dsn=2.1.5, status=deliverable (250
2.1.5 OK 14sm1216362muo.20)
Mar 12 14:15:37 home-server postfix/cleanup[24964]: E1C25A07A: message-
id=<200903121315...@home-server.localdomain>
Mar 12 14:15:37 home-server postfix/bounce[24967]: 061CCA079: sender
delivery status notification: E1C25A07A
Mar 12 14:15:37 home-server postfix/qmgr[24718]: 061CCA079: removed
Mar 12 14:15:37 home-server postfix/qmgr[24718]: E1C25A07A: from=<>,
size=1889, nrcpt=1 (queue active)
Mar 12 14:15:46 home-server postfix/smtp[24966]: E1C25A07A: to=<sender-
user...@gmail.com>, relay=smtp.gmail.com[209.85.135.111]:587,
delay=8.7, delays=0.03/0/7.2/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK
1236863836 i7sm1205622mue.44)
Mar 12 14:15:46 home-server postfix/qmgr[24718]: E1C25A07A: removed
.

The result is that I cannot receive the email at user...@gmail.com,
but I can receive Mail Delivery Status Report at sender-
user...@gmail.com.
I'm on dynamic Internet Public IP, so I use a dynamic dns host: could
it be a problem? (I mean, due to reverse IP lookup by gmail)
Anyway if it's a problem, how is it possible to receive the Mail
Delivery Status Report but not the message?
Thanks in advance,
Rob

cah...@gmail.com

unread,
Apr 12, 2009, 6:44:10 PM4/12/09
to Gmail-Users
Your ISP is more than likely blocking outgoing data on port 25 to cut
down on spam.
There is an easy work around though.

Just find out what server that your ISP uses as a mail relay. For
example, mine is
mail.cableone.net.

Then in your main.cf add the line

relayhost = yourisps.mailrelay.host

ie. relayhost = mail.cableone.net (for me)

And it should work fine.

On Mar 12, 7:25 am, RobPower <rob...@gmail.com> wrote:
> Hello there.
> I have a problem configuring my home-server (Ubuntu) withpostfix.
> The main usage I needpostfixfor is to send email alerts to an email
> address if monitoring programs found any problem with the server.
> I tried to configure it to use a gmail account to send it from,
> because I think it could be more professional if more future will be
> needed.
> I followed tutorial about configuration, including the part about
> certificates. The actual situation is the following:
>
> If i try to send an email using sendmail -t sender-usern...@gmail.com -
> bv destinat...@gmail.com, the console answers:
> Mail Delivery Status Report will be mailed to <sender-
> usern...@gmail.com>.
> and /var/log/mail.log reports:
>
> Mar 12 14:15:29 home-serverpostfix/pickup[24716]: 061CCA079: uid=0
> from=<sender-usern...@gmail.com>
> Mar 12 14:15:29 home-serverpostfix/cleanup[24964]: 061CCA079: message-
> id=<20090312131529.061CCA...@home-server.localdomain>
> Mar 12 14:15:29 home-serverpostfix/qmgr[24718]: 061CCA079:
> from=<sender-usern...@gmail.com>, size=294, nrcpt=1 (queue active)
> Mar 12 14:15:37 home-serverpostfix/smtp[24966]: 061CCA079:
> to=<destinat...@gmail.com>, relay=smtp.gmail.com[209.85.135.111]:587,
> delay=8.9, delays=0.06/0.03/8/0.83, dsn=2.1.5, status=deliverable (250
> 2.1.5 OK 14sm1216362muo.20)
> Mar 12 14:15:37 home-serverpostfix/cleanup[24964]: E1C25A07A: message-
> id=<20090312131537.E1C25A...@home-server.localdomain>
> Mar 12 14:15:37 home-serverpostfix/bounce[24967]: 061CCA079: sender
> delivery status notification: E1C25A07A
> Mar 12 14:15:37 home-serverpostfix/qmgr[24718]: 061CCA079: removed
> Mar 12 14:15:37 home-serverpostfix/qmgr[24718]: E1C25A07A: from=<>,
> size=1889, nrcpt=1 (queue active)
> Mar 12 14:15:46 home-serverpostfix/smtp[24966]: E1C25A07A: to=<sender-
> usern...@gmail.com>, relay=smtp.gmail.com[209.85.135.111]:587,
> delay=8.7, delays=0.03/0/7.2/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK
> 1236863836 i7sm1205622mue.44)
> Mar 12 14:15:46 home-serverpostfix/qmgr[24718]: E1C25A07A: removed
> .
>
> The result is that I cannot receive the email at usern...@gmail.com,
> but I can receive Mail Delivery Status Report at sender-
> usern...@gmail.com.
Reply all
Reply to author
Forward
0 new messages