I'm trying to set up sendmail and imap so that I can send and receive mail from tehart1@tehart.net, which is hosted on my machine at home. The mailserver is supposed to be mail.tehart.net.
The problem is that while I can send mail locally, i.e., root to <username>, and to the outside, e.g., <username>@mac.com, mail sent to tehart1@tehart.net gets lost in transit, and I get a bounced message.
So my goal is to send mail from outside to the domain tehart.net.
When I do
nslookup -type=MX tehart.net
I get this response:
tehart.net MX preference = 0, mail exchanger = mail.tehart.net
tehart.net nameserver = ns2.zoneedit.com
tehart.net nameserver = ns4.zoneedit.com
mail.tehart.net internet address = 24.18.170.149
When I do nslookup for mail.tehart.net, I get this:
Name: mail.tehart.net
Address: 24.18.170.149
So question 1. Have I properly configured the MX and A records to achieve the result I want?
Sendmail has a number of files that it gets data from /etc/mail/access, /etc/mail/aliases, /etc/mail/local-host-names, /etc/mail/mailertable, and /etc/mail/virtusertable.
I believe the aliases file has root aliased to tehart1, but not much else.
Question 2. Which of these files need to be modified, and in what way to achieve the desired result?
I can send the files from home if anybody needs to see them to help me troubleshoot this thing.
Thanks,
Tom Hart
The problem is that while I can send mail locally, i.e., root to <username>, and to the outside, e.g., <username>@mac.com, mail sent to tehart1@tehart.net gets lost in transit, and I get a bounced message.
So my goal is to send mail from outside to the domain tehart.net.
When I do
nslookup -type=MX tehart.net
I get this response:
tehart.net MX preference = 0, mail exchanger = mail.tehart.net
tehart.net nameserver = ns2.zoneedit.com
tehart.net nameserver = ns4.zoneedit.com
mail.tehart.net internet address = 24.18.170.149
When I do nslookup for mail.tehart.net, I get this:
Name: mail.tehart.net
Address: 24.18.170.149
So question 1. Have I properly configured the MX and A records to achieve the result I want?
Sendmail has a number of files that it gets data from /etc/mail/access, /etc/mail/aliases, /etc/mail/local-host-names, /etc/mail/mailertable, and /etc/mail/virtusertable.
I believe the aliases file has root aliased to tehart1, but not much else.
Question 2. Which of these files need to be modified, and in what way to achieve the desired result?
I can send the files from home if anybody needs to see them to help me troubleshoot this thing.
Thanks,
Tom Hart