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.

cPanel with sendmail

Discussion in 'E-mail Discussions' started by Doggy, Mar 2, 2004.

  1. Doggy

    Doggy Member

    Joined:
    Feb 7, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello ,

    Can anyone tell me how to use sendmail instead of exim because all my forms don't work with exim.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    AFAIK, cPanel does not support sendmail.

    The only reason I can think that your form to email script would not work, is because EXIM correctly interprets the -t command line switch, where sendmail is more "liberal".

    If this is your problem, then you need to modify the form to email script and remove any email address after -t on the line that pipes to sendmail mail, e.g.:

    Change
    Code:
    open (MAILFILE, "|/usr/sbin/sendmail -t [email]bob\@mydomain.com[/email]");
    print MAILFILE "blah blah...."
    
    to:
    Code:
    open (MAILFILE, "|/usr/sbin/sendmail -t");
    print MAILFILE "blah blah...."
    
    If that's not the problem, post here what is and someone may be able to help.
     
Loading...

Share This Page