Re: when amavis is down mail from script does not go out

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin
Date:  
To: plug-discuss
Subject: Re: when amavis is down mail from script does not go out
On Thu, 2004-07-22 at 13:50, Jeremy C. Reed wrote:
> ( sleep 3 ; echo "HELO rainier" ; sleep 2 ; echo "MAIL FROM:
> <>" ; sleep 1 ; echo "RCPT TO: <>";
> sleep 1 ; echo "DATA" ; sleep 1 ; echo "Subject: subject here" ; echo ;
> echo "." ; sleep 1 ; echo "QUIT" ) | telnet mail.host.somewhere 25


Cool script. When I try it the smtp server chokes on the formatting of
the sender and recipient addresses.

I did:
( sleep 5 ; echo "HELO foo" ; sleep 5 ; echo -E "MAIL FROM:
<>" ; sleep 5 ; echo -E "RCPT TO: <>"; sleep 5
; echo "DATA" ; sleep 5 ; echo "Subject: foobar" ; echo ; echo "." ;
sleep 5 ; echo "QUIT" ) | telnet smtp.isp.net 25


>From a sniffer I can see it connect and pass HELO with a 250 (ok)

response from the SMTP server. However, the script then sends something
like "MAIL FROM: kevin\377\355\377...", which the server rejects with
"550 Sender address is invalid".

Is that ISO encoding or something? I tried escaping the '@' character
like this "MAIL FROM: <kevin\@isp.com>" with no luck. I also tried echo
-e and echo -E.

If I telnet to port 25 on the SMTP server and type all this by hand it
works perfectly.

Hmmm, seen this before?

...Kevin

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss