Sender address rejected: Domain not found after changing hostname
Hello,
Here is the deal: I needed to receive email notifications in response to certain events from my CentOS machine. I wanted to make it simple, so I decided to simply use the default mail command, and everything worked right. However, recently I changed the hostname and domain of the PC: instead of localhost.localdomain, I now use pc1.mycompany; since then, mail command doesn't work. In the mail log I constantly receive the message "Sender address rejected: Domain not found (in reply to RCPT TO command)". I suppose that the cause of the problem is that I have to update the hostname in some file. I have tried editing /etc/main.cf, changing this value: myhostname = pc1.mycompany, but I'm still getting the same error message. Is there any other file that I have to edit? Best Regards |
Hi
My first guess is that your email server is not configured to act as a relay/proxy for non-hosted domains (which is correct). What's generating the error message? Your email client (is "mail" just a wrapper around some other executable or is it really an executable?) or the email server (are you connecting to some SMTP server?)? Cheers |
The domain that your using, does it exist?
I also configured a server to sent me e-mail without having a domain. Under postfix I used a config file named generic to map e-mail form a localaddress to my own gmail address. That way I could fool the SMTP of my provider to send the e-mail. |
Thanks for the answers.
Quote:
Code:
Oct 2 10:49:00 localhost postfix/postfix-script[4824]: stopping the Postfix mail system Quote:
Regards |
It seems like you relay to another SMTP server, I do the same.
I think this link basically describes the steps that I used: http://semi-legitimate.com/blog/item...ess-in-postfix You just let postfix give your outgoing mail a different address that is recognized by other SMTP servers. |
Quote:
Thanks again :D Regards, |
You're welcome and I think you can mark this thread as solved.
|
All times are GMT -5. The time now is 09:12 PM. |