I have a hosted web account that uses sendMail. It is Linux 7.2.
What is a restricted account?
···
From: David Ross <dross@code-exec.net>
Date: 2004/06/18 Fri AM 04:25:19 GMT
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Re: Net::SMTPFatalError: 550 Administrative prohibition
>
> Net::SMTP.start(
> 'mail.myServer.com',
> 25,
What OS are you using? Try a port beyond 1024.
Are you running that code in a restricted account?
--David Ross
> 'mail.myServer.com',
> userName,
> password,
>
> :login) do |smtp|
>
> smtp.sendmail( msg, "from@me.com", "to@you.com" )
> end
I believe that David was trying to establish whether the code was
running as root or not, since only root can open server ports lower in
number than 25. To connect as a client, though, you need no special
privileges, and any effective user ID is fine.
Since you're using the Net::SMTP library, you're obviously connecting
as a client to the mailhost, so the port number won't be an issue. In
fact, since the error you're seeing is one of the standard SMTP codes,
you've already connected to the server and begun a session when it
happens.
My guess is that you're being blocked from sending mail due to the
security and/or anti-spam policies configured into your ISP's SMTP
server. My guess is that something about the format of your message is
triggering a spam filter -- i.e., connecting from an IP address
outside the ISP's netblock, having mismatched senders in the message
headers and sendmail call, or something similar.
If you post an example of the actual message body you're trying to
send, we might be able to figure out what the filtering rule is;
alternately, you could just contact your ISP and ask someone what
their policy is on scripting mail transmission. They may not be happy
with it, unless you've got a good reason, but it would probably be
better to find that out before, rather than after, you start relying
on this code for anything.
Lennon
···
On Sat, 19 Jun 2004 02:09:20 +0900, stedak@charter.net <stedak@charter.net> wrote:
I have a hosted web account that uses sendMail. It is Linux 7.2.
What is a restricted account?
>
> From: David Ross <dross@code-exec.net>
> Date: 2004/06/18 Fri AM 04:25:19 GMT
> To: ruby-talk@ruby-lang.org (ruby-talk ML)
> Subject: Re: Net::SMTPFatalError: 550 Administrative prohibition
>
> >
> > Net::SMTP.start(
> > 'mail.myServer.com',
> > 25,
>
> What OS are you using? Try a port beyond 1024.
> Are you running that code in a restricted account?
>
> --David Ross
>
> > 'mail.myServer.com',
> > userName,
> > password,
> >
> > :login) do |smtp|
> >
> > smtp.sendmail( msg, "from@me.com", "to@you.com" )
> > end
>
>