The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Perl mailing script fails due to pop b4 smtp req

Discussion in 'E-mail Discussions' started by 4u123, Jan 16, 2006.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

    I have a user who is using a mailing script that sends via smtp.

    Hes getting 550 relay denied errors even though its being sent from his domain on the server.

    looking in the exim log it suggests that the account needs to be "popped" before it will accept mail via smtp - is this correct ?

    How can I allow him to send mail via smtp using his script ?

    Many thanks.
     
  2. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    If it's a proprietory script he could well wirte the sub where he authenticates before sending mail.
    Could try using through NON SMTP route but i have had situations where using /usr/sbin/sendmail did not work and switching to SMTP required what you mentioned so the script was modified to do a POP/SMTP login before sending mail.

    Anup
     
  3. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    is his script ON the Server ?

    It should relay fine if it is, otherwise get him to put it on the cpanel server :)
     
  4. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    It doesn't always. In those cases even /usr/sbin/sendmail fails to work.

    Anup
     
  5. blakeblake

    blakeblake Member

    Joined:
    Apr 2, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    if the script is on the server, in theory it should work as long as his domain is in /etc/localdomains ...again..all in theory.
     
  6. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Recently i had a client shift from plesk server to us. A Paid script (mailing) worked there too well but failed on cpanel (was configured to use /usr/sbin/sendmail .. plesk i believe uses qmail ).

    changed following

    mail_cmd = /usr/sbin/sendmail

    to

    mail_cmd = /usr/sbin/sendmail -t

    and it started working.

    Without the -t it throws error:

    Exim is a Mail Transfer Agent. It is normally called by Mail User Agents,
    not directly from a shell command line. Options and/or arguments control
    what it does when called. For a list of options, see the Exim documentation.

    Anup
     
    #6 anup123, Jan 17, 2006
    Last edited: Jan 17, 2006
Loading...

Share This Page