Re: Sendmail Problem
| From: | Don Read | Date: | Sun, 15 Jun 2003 18:06:48 +0000 |
| Subject: | Re: Sendmail Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151598@lists.php.net to get a copy of this message | ||
On 10-Jun-2003 Uma Shankari T. wrote:
>
> Hello,
>
> I am having some problem in sendmail using this code.
>
> $MP = "/usr/sbin/sendmail -t -f \@mainservername";
>
<snip>
> by main server id name..because of this outside mails are bouncing back..
>
> Can any one pls tell me where is the problem ??
>
What does the bounce say ?
> Is there any configuration need to do for this ??
>
Probably. The -f option sets the envelope 'From:' and can be restricted to
only 'trusted' users. I don't think this has ever been used to specify a
gateway.
The following is *wrong* -but one of them might get you out:
To: @mainservername:<somebody@outside.com>
-- or --
To: <somebody@outside.com>@mainservername
... and the sysadmin will probably whack your pee-pee for doing that.
So let him/her know beforehand so they don't TOS you.
And the last resort is fsockopen(mainservername, 25)
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.