[GRLUG] Sendmail configuration

Jeff DeFouw jeffd at i2k.com
Wed Mar 19 23:22:42 EDT 2008


On Thu, Mar 20, 2008 at 03:36:39AM +0530, Deepan wrote:
> I am using sendmail via php mail function to send
> emails. However few servers reject my mails with
> the error 'Sender address rejected: Domain not
> found', since mails from my server are sent as
> email at localhost.localdomain. How do I change this
> to a valid domain name ? We only own a public IP.
> we dont really have a domain name, is it possible
> to use IP ? 

If you have another address that's valid, you can specify a real "From:" 
address and return-path address (-f address) in the mail() function.  
See the additional_headers and additional_parameters examples:

http://www.php.net/manual/en/function.mail.php

-- 
Jeff DeFouw <jeffd at i2k.com>


More information about the grlug mailing list