i post this question last week in this forum.
hi... i just setup a new mail server running sendmail.
my HOSTNAME is mail.xxx.com
my problem is went i send an email to my client it automatically send my return address to
paul@mail.xxx.com. i want it
paul@xxx.com without the "mail" "HOSTNAME" and i want my remote client to email me at
paul@xxx.com not
paul@mail.xxx.com.
what configuration file will i edit to relay my
paul@xxx.com to
paul@mail.xxx.com.... after a hour
then someone reply to me that I need to add ff:
MASQUERADE_AS(xxx.com)
In your "sendmail.mc" file...
(don't forget to write your new sendmail configuration...)
example: m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
Make sure that you put all your aliases of you machine in you "local-host-names" file...
for example...
xxx.com (to accept mail sent to
paul@xxx.com)
mail.xxx.com
localhost
You also need a mx-record in you dns to be able to send mail to
name@xxx.com...
example:
xxx.com IN MX 5 mail.xxx.com
and boom it works! i can resent email without the HOSTNAME "mail" but another problem occur.... my mail server reject incoming mail without a HOSTNAME ex. it must be "mail.xxx.com" to accept it and reject if ex. "xxx.com" what seem to be the problem. this is the error that my remote client received went the mail they sent to me bounce back:
from in02-fes1.whowhere.com [204.xxx.xxx.xxx] ----- The following addresses had permanent fatal errors ----- <paul@xxx.com> ----- Transcript of session follows ----- 554 5.0.0 MX list for xxx.com. points back to mail.xxx.com 554 5.3.5 Local configuration error
can anyone translate to me what seem to be happining. thk in advance
: