cleverhandle
Diamond Member
So now I'm understanding why people stay away from this thing... I have two questions, which I think are related.
1) First, I want to make sure my solution to one problem was correct. I'm setting up a mail server for my small domain, and have a single MX record for domain.org pointing to mail.domain.org (see also #2). I was getting "relaying denied" errors trying to receive remote mail for user@domain.org, but mail to user@mail.domain.org was received just fine. The problem appeared to be that sendmail did not consider user@domain.org to be a "local recipient." My solution was to add domain.org to /etc/mail/local-host-names. Is this the correct method? I do not intend to receive mail (directly) on any machines besides the mail server.
2) Second, I've read that wildcard MX records are bad because they will cause mail to be deliverd even if the host does not exist. But I'm not sure that what I have is considered to be a wildcard MX. Should I be providing an MX for each resolvable host, and nothing for domain.org? Then I would have to tell sendmail that each host should be considered local, as described in #1?
Many thanks for any help...
1) First, I want to make sure my solution to one problem was correct. I'm setting up a mail server for my small domain, and have a single MX record for domain.org pointing to mail.domain.org (see also #2). I was getting "relaying denied" errors trying to receive remote mail for user@domain.org, but mail to user@mail.domain.org was received just fine. The problem appeared to be that sendmail did not consider user@domain.org to be a "local recipient." My solution was to add domain.org to /etc/mail/local-host-names. Is this the correct method? I do not intend to receive mail (directly) on any machines besides the mail server.
2) Second, I've read that wildcard MX records are bad because they will cause mail to be deliverd even if the host does not exist. But I'm not sure that what I have is considered to be a wildcard MX. Should I be providing an MX for each resolvable host, and nothing for domain.org? Then I would have to tell sendmail that each host should be considered local, as described in #1?
Many thanks for any help...