PDA

View Full Version : outgoing email rejected


guldner
05-26-2005, 07:29 PM
Hi,
I have a problem sending email from my VPS to email addresses with the same domaine.
I am using zoneedit, and have setup some mailforwards there. I don't need/want to use my vps to receive emails.
But I need to send email from the vps. This works well, except when I try to send to any address under my domain (ex. xxx@mydomaine.com), then sendmail rejects the mail because the user xxx does not exist.
Ofcourse I could create user xxx, but I'd much rather that sendmail didn't check if the user exists.
How do I do that?

Thanks.

Christian

retep
06-01-2005, 01:51 AM
Hi. Sendmail is seeing that the outgoing email is for 'its' domain and is grabbing and trying to deliver the email locally.

There are lots of (quite complex) ways to avoid it doing that.

But one simple method is to change your server's hostname. e.g. to www.yourname.com, and then sendmail will just relay those emails for you as expected.

Try editing /etc/hostname. Then run hostname --file /etc/hostname. Then restart sendmail with /etc/init.d/sendmail restart.

guldner
06-01-2005, 05:29 PM
Thanks,
I found another solution.
Since I forward all email sent to xxx@mydomaine.com to xxx@mydomaine.dk (denmark tld) anyway, I could just create an address mapping for the com domaine.