Hi,
I have a FreeBSD 8.0-p3 Release witn two virtual hosts and several jails.
The virtual hosts are "bsd.example.com" and "example.com".
The first is defined in /etc/rc.conf and DNS, the latter - only in DNS.
They have different private IP addresses.
One of the jails is "mail.example.com".
It corresponds to the MX DNS record and handles the mail for example.com with postfix and virtual accounts. No problems here.
The other jails have only 1 change in their mail configuration:
"root me@example.com" set in /etc/mail/aliases.
The mail from daemons running in those jails correctly goes to "me@example.com" which is actually handled by "mail.example.com"
No problems there either.
The problem appears when an account (daemon or user) tries to send mail from the host system (bsd.example.com) to "root". I guess it "sees" it is running on "example.com" and tries to deliver the mail locally without checking for the MX.
Of course this attempt fails miserably with error "no such local user: me@example.com".
So, please advise me how to make the sendmail program use the MX before the A record?
I have a FreeBSD 8.0-p3 Release witn two virtual hosts and several jails.
The virtual hosts are "bsd.example.com" and "example.com".
The first is defined in /etc/rc.conf and DNS, the latter - only in DNS.
They have different private IP addresses.
One of the jails is "mail.example.com".
It corresponds to the MX DNS record and handles the mail for example.com with postfix and virtual accounts. No problems here.
The other jails have only 1 change in their mail configuration:
"root me@example.com" set in /etc/mail/aliases.
The mail from daemons running in those jails correctly goes to "me@example.com" which is actually handled by "mail.example.com"
No problems there either.
The problem appears when an account (daemon or user) tries to send mail from the host system (bsd.example.com) to "root". I guess it "sees" it is running on "example.com" and tries to deliver the mail locally without checking for the MX.
Of course this attempt fails miserably with error "no such local user: me@example.com".
So, please advise me how to make the sendmail program use the MX before the A record?