How to relay all local mail through external SMTP relay?

How do I stop getting '550 relay not permitted' in Perl?

  • I've copied a small program from the internet so I can send emails using Perl, but after changing the email address and smtp I keep getting 'RCPT TO: error (550 relay not permitted)' What does this mean and how do I stop this error? This is the code I have #!/usr/local/bin/perl use Mail::Sendmail; unshift @{$Mail::Sendmail::mailcfg{'smtp'}} , 'mail.MyServer.com'; %mail = ( To => '[email protected]', From => '[email protected]', Message => "Test" ); sendmail(%mail) or die $Mail::Sendmail::error; print "OK. Log says:\n", $Mail::Sendmail::log; Thanks for your help. Tim

  • Answer:

    check your mail server and make sure it allows relaying. If you dont have access to mail server then you need to talk to the server admin.

tim85a at Yahoo! Answers Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.