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.

exim help...

Discussion in 'General Discussion' started by mitul, May 21, 2003.

  1. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    I am trying to execute a script by sending a email to admin@mydomain.com.
    The script gets executed when email is send to admin@mydomain.com. But an

    "Mail delivery failed message is send to the sender". Following is the error
    log generated. How do I stop the "Mail delivery failed message is send to
    the sender" from being send to sender.
    2003-05-21 01:07:13 19ILp9-0007As-00 <= user@mydomain.com U=topmarke P=local
    S=514
    2003-05-21 01:07:13 19ILp9-0007Al-00 ** |php
    /home/topmarke/public_html/mail.php <admin@mydomain.com>
    D=virtual_aliases_nostar T=virtual_address_pipe: return message generated

    2003-05-21 01:07:13 19ILp9-0007Au-00 <= <> R=19ILp9-0007Al-00 U=root P=local
    S=2314
    2003-05-21 01:07:13 19ILp9-0007Al-00 Error message sent to
    system@eluminoustechnologies.com
    2003-05-21 01:07:13 19ILp9-0007Al-00 Completed

    ----/etc/valiases/mydomain.com
    *: admin
    admin: |php /home/admin/public_html/mail.php
    user=admin
    group=mail


    Any suggestions would be appreciated...

    Thank you,

    cPanel.net Support Ticket Number:
     
  2. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Also Tried this

    ----/etc/valiases/mydomain.com
    *: admin
    admin: |/home/admin/public_html/mail.php
    user=admin
    group=mail

    Still I get the Failures Delivery Message with my original message!!

    Any help will be Appreciated!!!

    Regards,
    :confused:

    cPanel.net Support Ticket Number:
     
  3. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Re: Re: exim help...

    This is what i am following from the Web :
    http://gvtulder.f2o.org/articles/incoming-mail/

    and since i am using the Exim Option here is the address_pipe configuration
    address_pipe:
    virtual_address_pipe:
    pipe_transport = virtual_address_pipe
    pipe_transport = virtual_address_pipe
    pipe_transport = virtual_address_pipe
    pipe_transport = address_pipe
    pipe_transport = address_pipe

    I got to know why i am getting the Failure Delivery its bcoz Exim is trying
    to send mail to => test: |/home/path/script.php which is not a valid
    address.

    Correct me if i am wrong.

    cPanel.net Support Ticket Number:
     
  4. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Re: Re: Re: exim help...

    ****Bump***

    Strange ????

    cPanel.net Support Ticket Number:
     
  5. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    I belive so in my /etc/valiases/example.com i usually have entires format of

    user@example.com: user

    or

    user@example.com: address@anotherexample.com

    You may also like to use the -q after |php or |/usr/bin/php for quiet mode so that any output generated is the result of the script not any headers which php sends by default w/o it

    cPanel.net Support Ticket Number:
     
  6. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    I have these entries in my valiases file
    cat /etc/valiases/mydomain.com
    test@mydoamin.com: |/home/user/public_html/mail1.php
    *: user
    but it sends a Failure Delivery after executing the script.

    What could be the problem ?

    Regards,

    cPanel.net Support Ticket Number:
     
  7. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    What does the mail failure report say? does it include something like the below

    cPanel.net Support Ticket Number:
     
  8. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Exactly!!!

    The same thing is returned in the mail Delivery failure message

    The following text was generated during the delivery attempt:
    >
    > ------ pipe to |/home/user/public_html/mail1.php
    > generated by test@mydomain.com ------
    >
    > Content-type: text/html
    > X-Powered-By: PHP/4.3.1
    >
    >
    > Mail Sent
    > ------ This is a copy of the message, including all the headers. ------
    >

    --

    Why is this happening and could u please let me know how i make this work without any failure messages again.

    This is very important for me.

    Regards,

    cPanel.net Support Ticket Number:
     
  9. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    If you have something like this in the top line of mail1.php

    #!/usr/bin/php

    then you need to modify it to say

    #!/usr/bin/php -q

    this causes php to go into quiet and only produce messages if it encounter problems due to commands in the script (e.g. the same you would see if there were problems with a script when its run from a website)

    cPanel.net Support Ticket Number:
     
  10. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Thank you very much :)

    It Worked!!!

    The important thing was that the php script shouldn't print any headers out right?

    Thanks Again!!!

    Regards,

    cPanel.net Support Ticket Number:
     
  11. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    yes since the way exim has been configured is to return any messages which have any output since exim doesn't know weather the fact the script is returning some output is a good sign (like in this case) or a bad sign (there was a error in the script say)

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page