Can't send mail to special domain

TonyTran

Verified User
Joined
Feb 16, 2009
Messages
12
Dear,

I have some problem when send mail.
I can't send mail to special domain (phongvietco.com), it's my client. Another domain is ok.
My domain is khanhlinhco.com.vn, when i send mail to phongvietco.com, it's error:
It was not possible to send this Email,
Check the Address and Try again.

And here is logs:
[root@server ~]# tail -n 5 /var/log/maillog
Apr 14 22:48:51 server dovecot[12793]: POP3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 14 22:48:55 server dovecot[12793]: auth(default): shadow([email protected],127.0.0.1): unknown user
Apr 14 22:48:55 server dovecot[12793]: auth(default): passwd([email protected],127.0.0.1): unknown user
Apr 14 22:48:55 server dovecot[12793]: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 14 22:48:55 server dovecot[12793]: POP3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0


[root@server ~]# tail /var/log/exim/mainlog
2010-04-14 22:49:03 H=localhost (118.69.71.224) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>:
2010-04-14 22:49:03 H=localhost (118.69.71.224) [127.0.0.1] incomplete transaction (RSET) from <[email protected]>
2010-04-14 22:49:05 H=localhost (118.69.71.224) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>:
2010-04-14 22:49:05 H=localhost (118.69.71.224) [127.0.0.1] incomplete transaction (RSET) from <[email protected]>
2010-04-14 22:49:08 H=localhost (118.69.71.224) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>:
2010-04-14 22:49:08 H=localhost (118.69.71.224) [127.0.0.1] incomplete transaction (RSET) from <[email protected]>
2010-04-14 22:49:10 H=localhost (118.69.71.224) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>:
2010-04-14 22:49:10 H=localhost (118.69.71.224) [127.0.0.1] incomplete transaction (RSET) from <[email protected]>
2010-04-14 22:49:13 H=localhost (118.69.71.224) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>:
2010-04-14 22:49:13 H=localhost (118.69.71.224) [127.0.0.1] incomplete transaction (RSET) from <[email protected]>

I dont know why, but i moved domain khanhlinhco.com.vn to another hosting, it's work fine. :confused:

Can you help me to solved this problem ?
Thanks
 
Last edited:
Here's what I get:

Code:
host -t mx phongvietco.com
phongvietco.com mail is handled by 0 mailbk.phongvietco.com.
phongvietco.com mail is handled by 0 mail.phongvietco.com.

$ telnet mail.phonvietco.com 25
[B]mail.phonvietco.com: nodename nor servname provided, or not known[/B]

$ telnet mailbk.phongvietco.com 25
Trying 210.245.122.8...
Connected to mailbk.phongvietco.com.
Escape character is '^]'.
220 sv18.visun.vn ESMTP IceWarp 9.2.1; Wed, 14 Apr 2010 23:33:34 +0700
mail from: [email protected]
250 2.1.0 <[email protected]>... Sender ok
rcpt to: [email protected]
550 5.7.1 <[email protected]> [B]Access to <[email protected]> not allowed[/B]

So I think the problem is with that domain's configuration for email.
 
Thanks Ranz,

1. You type wrong domain in second command, phongvietco.com not phonvietco.com.
2. I checked record mail.phongvietco.com is listed in XBL list of Spamhaus, is this problem?
http://www.spamhaus.org/query/bl?ip=115.84.178.2


So, what i need to do now ? Or any solutions to solved this issue ?
 
Last edited:
try my commands (with correct spelling of domains :P) as shown in my posts to troubleshoot SMTP errors. It is probably handy to know the SMTP commands (click here for them: http://www.ranzs.com/?p=203)

you should organise to have that domain removed from the RBL list(s) in SpamHaus - ensuring (first of course) that there is no open relay on this server.
 
Nice little SMTP command review, ranz.

Would you consider researching how to do plain-text authentication in the SMTP handshake? I haven't had the time to do it.

Also, as a note: when you do the smtp handshake with every linux I've ever tried, you can use the backspace key. Maybe the difference is how it's interpreted my MSW?

Jeff
 
Hi Jeff,

Yes, most definitely ... in the making ;)

smtp-auth usually needs base64 data - so you need to convert "plain" to base64. There are some online tools you can use - plus some command prompts too.

So you can do something like this:

Code:
echo [email protected] | base64
dXNlckBkb21haW4K
echo password | base64
cGFzc3dvcmQK

Then you use these in your "AUTH LOGIN" commands.

You could also do this with Perl:

Code:
#!/usr/bin/perl

use MIME::Base64;

# encode parameter 1
$encoded_usr = encode_base64($ARGV[0]);
# encode parameter 2
$encoded_pwd = encode_base64($ARGV[1]);

#$decoded = decode_base64($encoded);

print $encoded_usr;
print $encoded_pwd;

and run the perl script like:

Code:
./base64encoder.pl username password
dXNlcm5hbWU=
cGFzc3dvcmQ=
 
Last edited:
Back
Top