Hi Russell,

I believe telnet should be done for MX record (the lowest record) and not for the domain.

Let me explain you the setup.

The email server and the client are in the same network. When both are in the same network the MX record is not used. Infact the clients directly sends the email to the mail server. Qmail-ldap server on receiving the email will check the entry in the rcpthosts and locals files if entry exist it will deliver the email locally. But as per the wiki http://www.qmail-ldap.org/wiki/index.php/Configuration_FAQ --> " qmail-ldap has no concept of 'virtual'domains. All it cares about is the email address of the recipient. As soon as it finds that address in an LDAP record it puts that message into that maildir. "

All the 3 things I have done, Entry of 2nd domain in rcpthosts and locals files and added the user to ldap database.
But still it will say remote in the log. Any suggestions.


Russell Simpkins wrote:
Are you sure you're firewall is open to port 25 traffic? I can't telent to either address on port 25.

telnet isaaviations.com 25
Trying 194.170.187.32...
telnet: connect to address 194.170.187.32: Operation timed out
telnet: Unable to connect to remote host


telnet isaaviation.ae 25
Trying 194.170.187.32...
telnet: connect to address 194.170.187.32: Operation timed out
telnet: Unable to connect to remote host

Dear Russell,

Below is the report

host -t mx isaaviations.com
isaaviations.com mail is handled by 10 mx1.isaaviations.com.

host -t mx isaaviation.ae
isaaviation.ae mail is handled by 5 mx1.isaaviation.ae.

host mx1.isaaviations.com.
mx1.isaaviations.com has address 213.42.24.16

host mx1.isaaviation.ae.
mx1.isaaviation.ae has address 213.42.24.16

isaaviation.ae. domain works fine problem with isaaviations.com domain.

But my question when the host entry for the 2nd domain (isaaviations.com) exists in rcpthosts and locals file why show it do a DNS lookup?


Russell Simpkins wrote:
Mario Remy Almeida wrote:
Dear All,

How to I get a second domain working?

I already have 1 working domain with qmail-ldap

Added the 2nd domain to rcpthosts and locals files also added the user for the 2nd domain in LDAP database and even able to find the user with qmail-ldaplookup

But when I send email to the 2nd domain in the log it says to remote for the 2nd domain and says Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/

Make sure that your dns is set up correctly. You can test using telnet

telnet seconddomain.au 25

Test this from your mail server. I'm pretty sure that qmail only uses dns and ignores /etc/hosts settings. So you have to have that new domain set up in your dns server. You can always restart qmail after you've added to rcpthosts.

Russ

Reply via email to