hi misc, i was looking at rc.conf to activate sendmail and i ran into this:
# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m" 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. two questions: 1) i want to make sure that sendmail won't relay email from any other host. is this setup enough? 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. any help or pointers would be greatly appreciated. /e