no mail is received by this linux box, but our developers are using a it to send HTML mail using sendmail
the problem they have is: it always display one and the same host name in the headers and the mail being send is for multiple domains
do I need to setup Sendmail to host multiple domains or can I get away with only reverse mapping as below?
Reverse mapping allows users to send mail from your server and have the correct domain name appended to the outbound e-mail. This feature works almost exactly as the virtusertable, but in reverse. It is done with a “generics table” and requires the following lines be added to sendmail.mc:
FEATURE(`genericstable', `dbm /etc/mail/genericstable')dnl
In addition, you will need to create /etc/mail/genericstable, which is just like /etc/mail/virtusertable except that the columns need to be switched so that column one shows the local user name and column two shows the e-mail username and domain name you want that user’s outgoing mail to have. For example:
Restart Sendmail, and it should allow you to perform as a virtual mail host for multiple domains. You can usually restart Sendmail by passing it akill –1 [PID of Sendmail] or running /etc/init.d/sendmail restart.