Issue with postfix (VPS)

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
FlyingMongoose
This is my homepage
This is my homepage
Posts: 353
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Sep 17, 2004 7:50 pm
Contact:

Issue with postfix (VPS)

Post by FlyingMongoose »

I'm having an issue with postfix. At the moment it is refusing connections to, well, send any mail, at the very least via PHP's mail() function. I do have the php.ini set properly with my local domain and whatnot underneath the sendmail path.

Obviously running any php site that sends a mail out this kinds of falls under the qualifications of what I personally call a "show stopper" (example forum registrations and what not).

The mail.log output is as follows
Oct 29 22:07:08 host postfix/smtp[5878]: connect to ASPMX3.GOOGLEMAIL.com[72.14.213.27]:25: Connection timed out
Oct 29 22:07:08 host postfix/smtp[5878]: D8EF811E3E0: to=<insertsendingemailhere>, relay=none, delay=105, delays=0.04/0.01/105/0, dsn=4.4.1, status=deferred (connect to ASPMX3.GOOGLEMAIL.com[72.14.213.27]:25: Connection timed out)
I have checked the main.cf configuration of postfix and it all SEEMS fine. I have however attempted to get a response back from the ssh terminal utilizing a telnet connection to the googlemail IP address above and it apparently BLOCKS it, I have double checked my firewall/iptables and established that YES the proper ports are open.

The ONLY thing I've seen sifting Google is the possibility that the port may be blocked on yours or interNAP's end, in which the case would be that you (or they) may have a "relayhost" I can set. But it seems unlikely (after searching these forums) seeing as I've seen you guys suggest postfix in the first place. The server IS set up to use a FQDN (actually subdomain), which is associated with the primary IP address of the machine, there are 3.

Any help you guys can offer would be fantastic. I've been stuck on this for quite some time and it's really starting to grind on me.

This is on Ubuntu Lucid 10.04, I'm hoping that my posting this here won't just help me but others that may have the same or similar issue(s). Thanks in advance.
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Issue with postfix (VPS)

Post by Edge100x »

If this is on a VDS, we block outbound port 25 for two weeks: http://www.nfoservers.com/forums/viewto ... =47&t=4579. Unfortunately, this was necessary because we were being targeted by spammers.

If waiting isn't an option, and you are just using this for outbound mail, I would recommend connecting to a client-facing mail server that runs on a different port -- generally you'll see these on port 587. Our server here would fit the bill, if you have a webhosting account with us, and Google might have one as well, because it's a fairly common need; many ISPs, including Comcast, block port 25 outbound.
FlyingMongoose
This is my homepage
This is my homepage
Posts: 353
Joined: Fri Sep 17, 2004 7:50 pm
Contact:

Re: Issue with postfix (VPS)

Post by FlyingMongoose »

Okay, thanks, that helps a ton to know. I'm patient enough I was just pulling my hair out wondering.
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Issue with postfix (VPS)

Post by Edge100x »

I'm sorry for the confusion there and I hope this didn't waste too much of your time!
Post Reply