Menu

#75 Access denied using HELO when trying to relay

open
nobody
None
5
2006-03-07
2006-03-07
Anonymous
No

I was trying to send a mail through a SMTP server
which permits relaying.
But i kept getting access denied - this is the log:

connecting to:PASMTP.TELE.DK:25
[server]: 220 pasmtp.tele.dk ESMTP
[client]: HELO PASMTP.TELE.DK
[server]: 250 pasmtp.tele.dk
[client]: MAIL FROM: <test@test.test>
[server]: 250 Ok
[client]: RCPT TO: <tsc@elbek-vejrup.dk>
[server]: 550 <PASMTP.TELE.DK>: Helo command
rejected: Access denied

I then searched google for answers and found this
article: http://www.unixwiz.net/techtips/postfix-
HELO.html

It states that when using the HELO command, the
address to be send is the name of the calling
machine, and not the hostname of the SMTP server
which is the way OpenSmtp does it.

I added i property to the SMTP-class called Client
and then uses this in SendMail() when sending the
HELO command. That fixed it.

Discussion


Log in to post a comment.