Fedora Linux Support Community & Resources Center
  #1  
Old 23rd January 2012, 05:48 AM
davecove Offline
Registered User
 
Join Date: Dec 2011
Location: Houston, Tx
Age: 50
Posts: 4
linuxfirefox
Postfix almost working

I put Fedora 14 on a VPS so the I could have a 'real' machine on the 'real' internet and start doing some of my own hosting (that is, moving my junk from a hosting provider to my own box).

I have postfix running, and it seems pretty happy, except that emails sent thru it never seem to actually get to their destination. For example, if I use mailx to send an email to my gmail account, like this:

Code:
echo test | mail -s "test email" me@gmail.com
I see the message go thru the maillog, and it seems OK, but it never appears in gmail (inbox, trash, or junk).

Code:
Jan 23 00:06:22 ns1 postfix/pickup[3958]: D3B261900E0: uid=0 from=<root>
Jan 23 00:06:22 ns1 postfix/cleanup[3998]: D3B261900E0: message-id=<20120123050622.D3B261900E0@ns1.foo.com>
Jan 23 00:06:22 ns1 postfix/qmgr[3959]: D3B261900E0: from=<root@foo.com>, size=442, nrcpt=1 (queue active)
Jan 23 00:06:23 ns1 postfix/smtp[4000]: D3B261900E0: to=<me@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.225.26]:25, delay=0.51, delays=0.1/0.01/0.31/0.09, dsn=2.0.0, status=sent (250 2.0.0 OK 1327295183 d6si6330731icx.47)
Jan 23 00:06:23 ns1 postfix/qmgr[3959]: D3B261900E0: removed
The same thing happens when I send a message to one of my hosted domains.

Yet when I use mailx to send an email to a local accout, the message is delivered to the local user with this in the maillog:

Code:
Jan 23 00:39:04 ns1 postfix/pickup[3958]: 935C61900E0: uid=0 from=<root>
Jan 23 00:39:04 ns1 postfix/cleanup[4037]: 935C61900E0: message-id=<20120123053904.935C61900E0@ns1.foo.com>
Jan 23 00:39:04 ns1 postfix/qmgr[3959]: 935C61900E0: from=<root@foo.com>, size=446, nrcpt=1 (queue active)
Jan 23 00:39:04 ns1 postfix/local[4039]: 935C61900E0: to=<dave@foo.com>, orig_to=<dave>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Jan 23 00:39:04 ns1 postfix/qmgr[3959]: 935C61900E0: removed
Inbound emails send from that gmail account to the dave@foo.com account are delivered fine.

Any insight would be appriciated.

</Dave>
Reply With Quote
  #2  
Old 23rd January 2012, 06:13 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: Postfix almost working

Something is wrong there ... My deliver lines look basically like yours.
The smtp seems to have finished correctly - which points the blame at gmail.
Any chance you have a filer on your gmail acct ?


I think there is a 98% chance that the mail went out corretly, but you might want to wireshark the transaction.
(it's easy to read).
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 23rd January 2012, 09:38 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
linuxfirefox
Re: Postfix almost working

Some things to consider:

Does your server have a static external IP? Is your PTR record setup properly? Does your ISP block SMTP? Can you send mail to other external mailboxes besides gmail?
__________________
======
Doug G
======
Reply With Quote
  #4  
Old 23rd January 2012, 01:04 PM
davecove Offline
Registered User
 
Join Date: Dec 2011
Location: Houston, Tx
Age: 50
Posts: 4
linuxfirefox
Re: Postfix almost working

Ok, it is gmail... if I send email to one of my non-gmail accounts, the message is delivered (yeah!). If I send it to a non-gmail account that gmail aggregates for me, and thus picks email up from, the message appears at the non-gmail account until gmail visits to pick up messages. At that point, the message disappears from the non-gmail inbox but never appears in my gmail inbox.

Now to figure out why gmail doesn't like my server. Both intodns.com and mxtoolbox.com give me 'all green'.

Can anyone suggest another tool that would analyse emails from my domain and reveal why gmail is having a fit. is there something like a gmail maillog?

Dave
Reply With Quote
  #5  
Old 23rd January 2012, 02:13 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: Postfix almost working

Might have a DNS authentication problem. If the gmail server can't authenticate your server it might reject the connections.

At a minimum the forward lookup of your domain must match the reverse lookup.

If you have a home based connection your ISP will not likely permit that. Forward lookups they can't stop, and that works if the remote server doesn't validate the name used in the SMTP header. But some servers will take that name and validate it by doing a reverse lookup of the IP number used for the connection, and if it doesn't match then it rejects the message. There are alternate authentications available, but they have progressively more effort at setup (I'm trying to remember them now...)

Got the others... SPF, Sender ID, and DomainKeys/DKIM:

http://help.campaignmonitor.com/topic.aspx?t=88

I do have to warn, this information appears specific to their operation, but the ideas should get you started.

Last edited by jpollard; 23rd January 2012 at 02:21 PM.
Reply With Quote
  #6  
Old 23rd January 2012, 02:28 PM
davecove Offline
Registered User
 
Join Date: Dec 2011
Location: Houston, Tx
Age: 50
Posts: 4
linuxfirefox
Re: Postfix almost working

How would gmail be authenticating my server? What can I check?

BTW: MXtoolbox.com shows that my reverse DNS is good and that I am not on any blacklists. IntoDNS.com is happy with my DNS settings except it doesn't like the fact I only have 1 operational name server and something about 'Stealth DNS records were sent'.

</Dave>
Reply With Quote
  #7  
Old 23rd January 2012, 09:28 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
linuxfirefox
Re: Postfix almost working

I have my own mail server here running on fedora 15/postfix/dovecot imap on verizon fios with static external IP. Reverse DNS lookup for my IP returns the verizon fios hostname, not my mail domain name. No problems sending to gmail, the only extra thing I've done to this setup was to create a SPF record for my mail doman name. DNS is handled by godaddy dns.
__________________
======
Doug G
======
Reply With Quote
  #8  
Old 23rd January 2012, 10:06 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: Postfix almost working

http://getsatisfaction.com/google/to...il_for_domains

looks appropriate.
Reply With Quote
  #9  
Old 24th January 2012, 12:20 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: Postfix almost working

FWIW Google's SMTP only accepts SSL/port=993 or STARTTLS/port=587 only.
http://support.google.com/mail/bin/a...n&answer=78799

Also w/ Google+ (and maybe otherwise) you must use an application specific password generated by google - see here. The gmail web account password will not work for SMTP
https://www.google.com/accounts/IssuedAuthSubTokens



Quote:
Originally Posted by Doug G View Post
Some things to consider:

Does your server have a static external IP? Is your PTR record setup properly? Does your ISP block SMTP? Can you send mail to other external mailboxes besides gmail?
Ahem - every email client on the planet sends email w/ SMTP protocol - so no rational ISP blocks SMTP.
Nope - that's not it.



Quote:
Originally Posted by jpollard View Post
Might have a DNS authentication problem. If the gmail server can't authenticate your server it might reject the connections.

At a minimum the forward lookup of your domain must match the reverse lookup.
This potentially COULD be a problem, however google's smtp is supposed to accept emails from random laptop user clients from random locations - so it's pretty clear it's not picky about DNS verification. The OP is sending email to an SMTP service, not receiving SMTP.


==============

NB: I configures thunder bird to send messages SMTP to gmail with ne great issues.
user name is like "someone@gmail.com", and the password is unencrypted (but inside TLS) plain text.

---------- Post added at 08:20 PM ---------- Previous post was at 07:44 PM ----------

===========
For postfix I think you want ...
master.cf need this uncommented ....
tlsmgr unix - - n 1000? 1 tlsmgr
main.cf
relayhost = [smtp.gmail.com]

The smtp auth is tricky, and I've never done it.
F14+ postfix is build to allow cyrus auth or dovecot auth
Quote:
[stevea@hypoxylon postfix]$ postconf -a
cyrus
dovecot
Here are some instructions for cyrus auth setup for auth
http://postfix.state-of-mind.de/patr...tter/smtpauth/

But I think more generally you need the saslauthd service running and configuerd(how?)
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #10  
Old 24th January 2012, 09:50 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Postfix almost working

Quote:
Ahem - every email client on the planet sends email w/ SMTP protocol - so no rational ISP blocks SMTP.
Ahem to you too. Not only are your facts incorrect, your choice of wording is really not very wise.

Many, if not most, residential ISP's (in the US) block smtp on default smtp ports.
__________________
======
Doug G
======
Reply With Quote
  #11  
Old 24th January 2012, 02:22 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: Postfix almost working

stevea - postfix is a MTA, not a MUA.

MUA has user authorization capability, operating an MTA means that authorization isn't available.
Reply With Quote
Reply

Tags
gmail, postfix, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix on f12 stopped working... flux Servers & Networking 0 24th November 2009 08:26 AM
Postfix not working after upgrade LastLink Servers & Networking 0 1st October 2009 05:17 PM
Postfix as SMTP, Dovecot as POP: not entirely working... Hawkeye0203 Using Fedora 3 25th February 2009 12:16 AM
PostFix not working. webmastadj Servers & Networking 11 20th February 2009 02:13 AM
Postfix virtual_alias_domains not working jakemaul Servers & Networking 1 7th April 2005 08:19 PM


Current GMT-time: 05:01 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat