PHP & mailing list & Relay of SMTP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

PHP & mailing list & Relay of SMTP

Post 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 ?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply