Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running CentOS 5.
I am using Postfix and Dovecot. I have had no problems sending/receiving mail until recently.
I have a domain name(we'll call it mydomain.com} and mx records pointing to my server. All of a sudden, I can send email out to ANY email address on the web. However, I can only RECEIVE email from mydomain.com. I cannot receive email from any other domains.
Sounds confusing, I know, but hopefully someone can shed some light for me.
The only "weird" thing I noticed recently was that my server time was off. After setting the time correctly, dovecot stopped working. I then had to start dovecot manually, then email started working again, but only as I described above.
Last edited by areamike; 04-09-2009 at 07:20 AM.
Reason: Changed title to add resolved.
Mail sending is done by Postfix so it's unlikely that an issue with Dovecot would affect it (the Dovecot problem sounds like the time moved backwards hiccup, resolvable by running ntpd on your server).
Send a test message while tailing your mail log:
tail -f /var/log/maillog
and watch for messages from Postfix. There should be some good clues there to explain what's happening.
Mail sending is done by Postfix so it's unlikely that an issue with Dovecot would affect it (the Dovecot problem sounds like the time moved backwards hiccup, resolvable by running ntpd on your server).
Send a test message while tailing your mail log:
tail -f /var/log/maillog
and watch for messages from Postfix. There should be some good clues there to explain what's happening.
Welp, tried your suggestion and got nothing, nada zero.
All the maillog shows is the PLAIN type login from the email account through dovecot, but no email is ever received from outside domains.
Mar 30 20:05:13 www dovecot: pop3-login: Login: user=<areamike>, method=PLAIN, rip=::ffff:XX.XXX.XXX.XXX, lip=::ffff:192.168.0.111
Mar 30 20:05:13 www dovecot: POP3(areamike): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
However, if I send email from user@mydomain to user1@mydomain, it shows in maillog as normal. But from user@anyotherdomain to user@mydomain, NOTHING!
From user@mydomain to user1@mydomain: which SMTP server are you using? Your ISP? Your own server?
From user@anyotherdomain to user@mydomain: same question... which SMTP server? Your ISP? Your server? Gmail? Something else?
When mail sent from an outside source (e.g. a Gmail account) is received at your server, Postfix receives it and will log the fact. If you don't see that happening then the outside sender is having a problem finding or connecting to your mail server.
- Check that Postfix is in fact running.
- Check that there isn't a firewall on your server blocking it.
- Check that the MX record for your domain is correct.
But you do need to explain exactly how you're sending those messages, i.e. via which SMTP server.
Postfix is running.
Firewall has not been changed
I have not changed my MX records in a long time, so I doubt that is the problem.
From user@mydomain to user1@mydomain: uses smtp.mydomain.com to send
From user@anyotherdomain to user@mydomain: uses smtp.comcast.net to send
It appears to me that ANY mail coming from anything other than smtp.mydomain.com is not being received by my server. It's almost like it is blocking anything not from smtp.mydomain.com.
The other thing is, the mail being sent from smtp.anyotherdomains.com is going out just fine to user@mydomain.com and is not bouncing back at all.
742BFC18056: host mx1.comcast.net[76.96.62.116] refused to talk to me: 554 IMTA19.westchester.pa.mail.comcast.net comcast 69.245.162.242 Comcast blocked. Please see http://help.comcast.net/content/faq/ES000001
So there it is. Apparently they finally caught on that I was using an smtp(smtp.mydomain.com) server occasionally other than theirs. I wasn't using it for spam, just for my own personal use, however, it appears that does not matter.
Thank you Comcast.
The funny thing is that I can send email from Windows Mail using user@mydomain.com through smtp.mydomain.com and it works. I still just cannot receive email from anything other than mydomain.com email addresses. Although it may be deceiving since I have relayhost=smtp.comcast.net in my Postfix main.cf
OK, now I am starting to wonder if this has anything to do with PCRE. I recently thought I needed to install PCRE, however it was already on my box. I installed it anyway and it almost seems coincidental that accepting emails from outside stopped working around the same time.
This is driving me nuts.
I can still send emails out from my server to anywhere with no problems. I can receive emails, but ONLY from my FQDN of my server.
eg. user@areamike.com to user2@areamike.com works flawlessly
Something similiar is happening with my pop3 server/service.
I can send email to any domain/email address on web, but I CAN NOT receive emails from ANY domain (anywhere), mydomain included.
Iīve made several changes in dovecot.conf but I canīt identify the problem.
Do you have any clue about my problem??...
Thanks...
Quote:
Originally Posted by areamike
Well, here I go again.
I am running CentOS 5.
I am using Postfix and Dovecot. I have had no problems sending/receiving mail until recently.
I have a domain name(we'll call it mydomain.com} and mx records pointing to my server. All of a sudden, I can send email out to ANY email address on the web. However, I can only RECEIVE email from mydomain.com. I cannot receive email from any other domains.
Sounds confusing, I know, but hopefully someone can shed some light for me.
The only "weird" thing I noticed recently was that my server time was off. After setting the time correctly, dovecot stopped working. I then had to start dovecot manually, then email started working again, but only as I described above.
I'm not sure, but my problem is resolved. I had change the listening port for smtp from 25 to something else. This worked for while and then stopped. I changed back to port 25 and now all is well.
First page is step one, setting up Postfix, Then Next is setting up Dovecot. You might have made changes to your Dovecot config that is causing the issue. Or it could be your postfix main.cf file has some wrong settings.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.