Hello!
So perhaps to make all a bit clearer:
I have a SME server up and running for a local network which is named example.lan (so it does not interfere with the example.com domain that is hosted externally for web and mail).
The SME server is behind an internet router which gets a dynamic IP address. So far the SMTP proxy is turned off.
I can use the SME server's SMTP server to send emails inside the LAN (e.g. from a@example.lan to b@example.lan).
Now I want to send mails through the SME server from e.g. a@example.com (who's corresponding SME account is a@example.lan) to anyone on the internet.
And here's my problem. Mails that are sent through the SME server (when proxy is turned on) don't get through but deliver a qmail error message and are lost. The message in /var/log/qmail/current is e.g.:
@4000000046b6e6c91e2717e4 new msg 2656775
@4000000046b6e6c91e272b6c info msg 2656775: bytes 564 from <a@example.lan> qp 24942 uid 453
@4000000046b6e6c91e67f174 starting delivery 20: msg 2656775 to remote someone@somewhere.com
@4000000046b6e6c91e682054 status: local 0/10 remote 1/20
@4000000046b6e6c91f2aa91c delivery 20: failure: Sorry,_I_couldn't_find_any_host_named_localhost._(#5.1.2)/
@4000000046b6e6c91f2ce754 status: local 0/10 remote 0/20
@4000000046b6e6c91fb90a54 bounce msg 2656775 qp 24944
@4000000046b6e6c91fba4e8c end msg 2656775
I have added my external provider's information to the SME webinterface (external mailserver's name example.com, username and password for SMTP authentication).
When I send a mail through the HORDE webmail interface on the SME server, I get the same logfile entry in qmail and the admin gets a failure notice from the mailer daemon as stated above.
I hope this is now clearer for you.
Here a screenshot:
