On Tue, Nov 02, 2010 at 12:53:15PM +0800, Edwin Eyan Moragas wrote:
> as i understand, sendmail is initially configured to send emails
> locally (ie, users on the same host).
> 
> i'm setting up PHP on chrooted apache. mini_sendmail-chroot is already
> installed. i don't have any shells copied to the chroot bin directory
> (/var/www/bin).
> 
> i was able to send mail from PHP using mini_sendmail-chroot after
> changing sendmail_flags to the one recommended by rc.conf. the setup
> is a web server out in the open internet.
> 
> i'm using openbsd 4.6.

You're aware that 4.6 is unsupported as of today, right? Fortunately,
upgrades are easy.

> two questions:
> 
> 1) i want to make sure that sendmail won't relay email from any other
> host. is this setup enough?

Yes.

> 2) what do i need to do to have multiple domain names allowed by
> sendmail to send from this host? eg, the websites i have are
> domain1.com, domain2.net. i think i can set the From field of the
> email from PHP code.

Sendmail-wise, nothing. If the domains in question have an SPF record,
you do have to update that. Similarly, if you want to *receive* mail for
multiple domains, you'll have to update your sendmail configuration.

                Joachim

-- 
TFMotD: DSA_generate_key (3) - generate DSA key pair
http://www.joachimschipper.nl/

Reply via email to