Page 1 of 1

PHP & mailing list & Relay of SMTP

Posted: Tue Oct 17, 2006 6:09 am
by amir
Hi,

I have a mailing list (also standard forms) based on PHP

example:
mail("external@domain.com","subject","message","from....");

and I HAD TO check the option "allow relay for local sender addresses" in my smtp server (also see here: http://www.jbmd.com/es.jpg), otherwise emails would not be sent to external email accounts.

However, everybody knows that this option opens my email server to spammers.

Is there any other solution how to keep above mention option in smtp relay unchecked? (And I´d prefer NOT to use PEAR smtp driver) and still be able to send email ?

Posted: Tue Oct 17, 2006 6:21 am
by Chris Corbyn
Add yourself to the list of allowed hosts? :? All SMTP servers have at least some way of specifying "relay from host" addresses.