I've installed Postfix as detailed in the HowTo setup to use an ISP SMTP server as a smarthost , and I have Fetchmail setup to retrieve mail from ISP mailboxes.
I can send outgoing mail from Outlook without any problem, and the internal addresses are mapped to the internet addresses correctly.
My problem is with accepting incoming messages.
Fetchmail retrieves them OK, but then they get rejected and returned to sender.
I'm getting the following kind of thing:
Host lan.blenheimbaptist.org.nz not found.
The following recipients did not receive this message:
<office@lan.blenheimbaptist.org.nz>
The hostname of the server should be server.lan.blenheimbaptist.org.nz I can ping it OK internally, and webmin reports this as the hostname.
My server is behind a NAT router, and I'm using the internal domain of lan.blenheimbaptist.org.nz while the real world internet domain is just blenheimbaptist.org.nz
office@blenheimbaptist.org.nz should be going to office@lan.blenheimbaptist.org.nz but it's not, even though I have:
Code: Select all
localdomains lan.blenheimbaptist.org.nz
user "office@blenheimbaptist.org.nz" with
password "passwordhere"
is office@lan.blenheimbaptist.org.nz
here
In outgoing mail, office@lan.blenheimbaptist.org.nz DOES show office@blenheimbaptist.org.nz as the sender, and is sent successfully.
I also get an error saying that sxadmin@lan.blenheimbaptist.org.nz could not be found.
I suspect there is a problem with LDAP as in Webmin when I click on "Transport Mapping" under postfix configuration, I get the following message.
LDAP search of failed : I/O Error
Any suggestions on what to do next?