[Pkg-exim4-users] Configuring incoming mail to smart host

johnbakel at punt.nl johnbakel at punt.nl
Sat Mar 17 22:32:20 UTC 2012


I'll reply to my own mail for those who have the same problem.

On Sat 17/03/12 19:25 , johnbakel at punt.nl wrote:
> I'm trying to configure this:
> * accept all mail for mydomain.example from Internet; 
> * deliver that mail to mail.otherdomain.example, without a MX record;
> * no relaying any other mail, from any IP; 
> * no local delivery, no local sending.

> RCPT TO: 
> 550 Unrouteable address

The issue appears to be the setting of host and domain name and possibly some other related settings.
Answer found here: http://forum.linode.com/archive/o_t/t_8271/only_@mydomain.com_=_unrouteable_address.html

hostname -f should show FQDN:
mydomain.example
set new value:
hostname -f mydomain.example

sysctl should show proper values:
kernel.domainname = mydomain.example
kernel.hostname = mail

show value:
/sbin/sysctl -a
set new value:
/sbin/sysctl -w kernel.domainname="mydomain.example" 
(changing kernel.hostname name didn't work for me, I used a panel to change it.)




More information about the Pkg-exim4-users mailing list