Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2005, 18:14
heff heff is offline
Junior Member
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix not accepting mail

Hi all, I am attempting to configure a test mail server (postfix) on an OpenBSD machine, but have run into a problem that I can't seem to find on Google or elsewhere. When I run postfix, I am able to telnet into my mail server from outside of my local network, and send an email to webmaster@mydomain.com. I have configured the aliases file to link the webmaster account to root, and after the telnet session I run mail as root, and I can see that I have properly recieved the message. However, when attempting to send an email from another mail server (ex: gmail or yahoo mail), the mail does not show up in /var/mail/root and /var/log/maillog has no additional entries. Also, there is no mail failure message returned to my yahoo/gmail accounts. I have checked my MX records and ensured that they resolve to the correct IP address. I believe this may not be a postfix-specific problem, as I created a quick sendmail configuration and had the exact same problem with that as well. If anyone could point me in the right direction, I would appreciate it.
Reply With Quote
Sponsored Links
  #2  
Old 17th November 2005, 18:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by heff
Hi all, I am attempting to configure a test mail server (postfix) on an OpenBSD machine, but have run into a problem that I can't seem to find on Google or elsewhere. When I run postfix, I am able to telnet into my mail server from outside of my local network, and send an email to webmaster@mydomain.com. I have configured the aliases file to link the webmaster account to root, and after the telnet session I run mail as root, and I can see that I have properly recieved the message. However, when attempting to send an email from another mail server (ex: gmail or yahoo mail), the mail does not show up in /var/mail/root and /var/log/maillog has no additional entries. Also, there is no mail failure message returned to my yahoo/gmail accounts. I have checked my MX records and ensured that they resolve to the correct IP address. I believe this may not be a postfix-specific problem, as I created a quick sendmail configuration and had the exact same problem with that as well. If anyone could point me in the right direction, I would appreciate it.
This looks like a DNS problem, even if you checked the MX records. Did you change them recently? Changes may take up to three days until they propagate...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th November 2005, 19:46
heff heff is offline
Junior Member
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default MX records

Well, I suspected that the mail was never reaching my server since nothing is getting logged in maillog, so I tried resolving MX records from outside my LAN, and then telneting to mail.mydomain.org, both worked fine. Plus I havn't touched my DNS settings in the past few days, so as far as I can tell, it isn't a DNS problem.
Reply With Quote
  #4  
Old 17th November 2005, 20:27
heff heff is offline
Junior Member
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Update

OK, here is some other info that I found that may help resolve this issue: I attempted to send an email to my server from my gmail account using the IP address instead of the domain name (i.e., webmaster@xxx.xxx.xxx.xxx), and it went through fine. I then attempted to send an email using the same format (IP address instead of domain name) using a telnet session, and recieved a 550 error. So, the domain name works with a telnet session, but an IP address does not, and an IP address seems to work for everything else, but the domain name does not. I would attribute this entirely to DNS if it weren't for the 550 error. Any ideas?
Reply With Quote
  #5  
Old 17th November 2005, 22:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the value of inet_interfaces in /etc/postfix/main.cf? Should be all.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 18th November 2005, 02:39
heff heff is offline
Junior Member
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I set inet_interfaces=all in main.cf, but still no luck. When I restarted postfix however, I saw an entry in maillog which I had previously overlooked:

Code:
warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
I found some stuff via google linking this to a problem with db4/openldap, but I'm not using ldap in my configuration. I also ran postfix check and got no complaints.

Last edited by heff; 18th November 2005 at 02:42.
Reply With Quote
  #7  
Old 18th November 2005, 11:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Anything in your mail error log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 22nd November 2005, 16:36
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

perhaps you could privately provide your actual FQDN (i.e. mail.mydomain.org) so that we may troubleshoot DNS, etc.

If you'd like to send it to me in a private message, I won't post it on the forum.

I've had issues with DNS if you do not have a reverse DNS record that resolves to your mail server hostname. Say, if you telnet to 25... it generally says "mail.mydomain.org" or "mydomain.org" etc... you need to have a reverse DNS record to resolves the IP to that hostname. Most big mail servers (yahoo, etc) filter out certain mail servers without a proper rDNS lookup due to the influx of the bastards that spam us all.

Also, are you certain that your domain points to the IP you are using? If you can telnet to 25 with the domain, but no with the IP that just sounds .... no-so-right.
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #9  
Old 19th March 2006, 08:29
geek.de.nz geek.de.nz is offline
Member
 
Join Date: Feb 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to geek.de.nz Send a message via MSN to geek.de.nz
Default same problem but seems to work for other accounts

Quote:
Originally Posted by heff
Hi all, I am attempting to configure a test mail server (postfix) on an OpenBSD machine, but have run into a problem that I can't seem to find on Google or elsewhere. When I run postfix, I am able to telnet into my mail server from outside of my local network, and send an email to webmaster@mydomain.com. I have configured the aliases file to link the webmaster account to root, and after the telnet session I run mail as root, and I can see that I have properly recieved the message. However, when attempting to send an email from another mail server (ex: gmail or yahoo mail), the mail does not show up in /var/mail/root and /var/log/maillog has no additional entries. Also, there is no mail failure message returned to my yahoo/gmail accounts. I have checked my MX records and ensured that they resolve to the correct IP address. I believe this may not be a postfix-specific problem, as I created a quick sendmail configuration and had the exact same problem with that as well. If anyone could point me in the right direction, I would appreciate it.
Hi, I have the exact same problem, but my DNS MX records should be fine as well. The other funny thing is that all email seems to work, except the webmaster@mydomain.com does not, as well as the root@mydomain.com. Well, I can see why root@mydomain.com would not work, but webmaster? Is it turned off by default or do I need to add a user for that? However, when I send email to someuser@mydomain.com I can read the email, even if sent from a gmail account.

It's probably due to a misunderstanding of the /etc/aliases file, because the other funny thing is, when I make an alias for root as in:

root: myemail@gmail.com

I get root email sent from the system. But when I forward any other email to my gmail account, as in:

myuser: myemail@gmail.com
or
webmaster: myemail@gmail.com

I do not receive the email at all!! Is Postfix different to sendmail in this respect? How come it is so inconsistent? Why do I get email from the root user (system logs etc)? I am completely lost and haven't found a clue anywhere on the net, as how to resolve this issue. Help appreciated! Thanks.
Reply With Quote
  #10  
Old 19th March 2006, 12:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

What's in your mail log when you send an email to root@mydomain.com or webmaster@mydomain.com?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
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
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
postfix ISPconfig problem matehortua Installation/Configuration 8 3rd September 2006 17:03
Mandriva with ISPConfig for Postfix sent mail to Yahoo & Hotmail lexcomputer Installation/Configuration 9 24th September 2005 17:24
Mail not accepting username and password! nformosa General 9 14th September 2005 09:58
Total Frustration-HELP palkat Installation/Configuration 17 3rd September 2005 17:28


All times are GMT +2. The time now is 18:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.