Linode Forum
https://forum.linode.com/

Can't send mail to own domain
https://forum.linode.com/viewtopic.php?f=11&t=6796
Page 1 of 1

Author:  jeremiahrich [ Wed Mar 09, 2011 7:14 am ]
Post subject:  Can't send mail to own domain

I use my Linode as a web host only, and use Tuffmail for my email needs. Accordingly, I have my MX records pointing to Tuffmail. Anyway, it appears that when I send an email via sendmail or php's mail function, I can send to any domain EXCEPT for my domain. I am sure it's some simple config issue, but I am stumped. Any ideas?

Author:  obs [ Wed Mar 09, 2011 8:01 am ]
Post subject: 

A little more information would be helpful, what mail server are you using? Are there any errors in /var/log/mail.log

Author:  waldo [ Wed Mar 09, 2011 12:53 pm ]
Post subject: 

odd, it works for me :)

Author:  haus [ Wed Mar 09, 2011 4:56 pm ]
Post subject: 

Your mail system (postfix maybe?) may think it is authoritative for your domain, so it isn't bothering to do MX record lookups to deliver mail.

Author:  jeremiahrich [ Wed Mar 09, 2011 5:33 pm ]
Post subject: 

Code:
Mar  9 04:33:36 localhost sendmail[3644]: p29AXaTm003644: to=user@domain.com, ctladdr=user@domain.com (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30532, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p29AXaab003645 Message accepted for delivery)

Mar  9 04:33:36 localhost sm-mta[3646]: p29AXaab003645: to=<user@domain.com>, ctladdr=<user@domain.com> (1000/33), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31003, dsn=2.0.0, stat=Sent


I actually do not have a mail server set up on this installation. (Though I do use sendmail and php mail for outgoing mail only).

Author:  obs [ Wed Mar 09, 2011 6:07 pm ]
Post subject: 

You should probably follow one of these guides then

http://library.linode.com/email/exim/se ... 0.04-lucid
http://library.linode.com/email/postfix ... 0.04-lucid
(assuming you're using ubuntu lucid if not pick the relevant guide from the library)

Author:  jeremiahrich [ Fri Mar 11, 2011 7:01 am ]
Post subject: 

Thanks for the links! I followed the first guide, and unfortunately I am still having the same issue. My username is the same as my email address, so email is being delivered to my user instead of being relayed externally. Any other ideas?

Author:  obs [ Fri Mar 11, 2011 7:22 am ]
Post subject: 

Edit
Code:
/etc/exim4/update-exim4.conf.conf
and set
Code:
dc_other_hostnames=''
then run
Code:
update-exim4.conf
and then
Code:
 /etc/init.d/exim4 restart

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/