LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Qmail can't send for outside (https://www.linuxquestions.org/questions/linux-software-2/qmail-cant-send-for-outside-509197/)

waelaltaqi 12-10-2006 04:35 PM

Qmail can't send for outside
 
i setup qmail depending on qmailrocks.org installation instructions. i'm using a windows workstation with outlook express to test my IMAP and SMTP server. i tried to send a self test from the postmaster@waelaltaqi.com to user@waelaltaqi.com and the message went trough. now i'm trying to send a message to my Gmail account and the client is coming back with this error:
Code:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'wael.altaqi@gmail.com'. Subject 'test', Account: 'mail.waelaltaqi.com', Server: 'mail.waelaltaqi.com', Protocol: SMTP, Server Response: '553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)', Port: 25, Secure(SSL): No, Server Error: 553, Error Number: 0x800CCC79
i have no idea were the problem is, i used nslookup to see if my server is able to resolve mx records for outside domains:

Code:

root@mail:~# nslookup
> set type=mx
> gmail.com
Server:        192.168.0.1
Address:        192.168.0.1#53

Non-authoritative answer:
gmail.com      mail exchanger = 50 gsmtp183.google.com.
gmail.com      mail exchanger = 5 gmail-smtp-in.l.google.com.
gmail.com      mail exchanger = 10 alt1.gmail-smtp-in.l.google.com.
gmail.com      mail exchanger = 10 alt2.gmail-smtp-in.l.google.com.
gmail.com      mail exchanger = 50 gsmtp163.google.com.

Authoritative answers can be found from:
gmail.com      nameserver = ns3.google.com.
gmail.com      nameserver = ns4.google.com.
gmail.com      nameserver = ns1.google.com.
gmail.com      nameserver = ns2.google.com.
gmail-smtp-in.l.google.com      internet address = 209.85.133.27
gmail-smtp-in.l.google.com      internet address = 209.85.133.114
alt1.gmail-smtp-in.l.google.com internet address = 64.233.167.27
alt1.gmail-smtp-in.l.google.com internet address = 64.233.167.114
alt2.gmail-smtp-in.l.google.com internet address = 64.233.183.114
alt2.gmail-smtp-in.l.google.com internet address = 64.233.183.27
gsmtp163.google.com    internet address = 64.233.163.27
gsmtp183.google.com    internet address = 64.233.183.27
>

so my server is able to resolve mx records for outside domains. so it's definatly a problem with my smtp settings that it's not able to send out messages for other smtp servers on the internet. i have to mention that server is behind an ipcop firewall with no addons on it.
is there a way to troubleshoot smtp using telnet command?

please help :-)

trickykid 12-10-2006 04:47 PM

Are you authenticating yourself when sending emails? Most MTA's by default will reject emails that are not locally unless you authenticate yourself. Or add your client machine to the list of known hosts to relay thru to send email, etc. This prevents your MTA from being an open relay for spammers and crackers to use your box to send emails from, etc.

waelaltaqi 12-11-2006 03:27 PM

when i told outlook express to autheneticate with the smtp username/pass, it worked right away. it makes a lot of sence not to let me send until i i sign in. thank you


All times are GMT -5. The time now is 09:40 PM.