Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 19th December 2005, 22:40
pankaj pankaj is offline
Junior Member
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question How to send mails using php mail function outside domain

i am a new member
can someone help me .
mail function works quite easily by simply specifying smtp server on windows. But wat about linux. i have configured sendmail but i am not sure if i have done it properly.
i am able to send mails to localhost but not to outside domains .
i searched the queue of mails and the output is

jBJIF7Kg005297 7 Mon Dec 19 23:45 <root@host.pankaj.com>
(Deferred: 450 <root@host.pankaj.com>: Sender address rejecte)
Total requests: 29

the mails remain in queue but they dont get forward.
besides the mail function works only if i comment out
; sendmail_path="... "

can someone help to send mails outside domain
Reply With Quote
Sponsored Links
Old 19th December 2005, 23:09
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

There might be some reasons why this doesn't work. The first one is that host.pankaj.com does not exist in DNS. So either create the appropriate DNS record, or use another sender address.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 09:27
Mail server jas_esp Server Operation 1 7th December 2005 19:17
internal domain error with mail matehortua Installation/Configuration 5 16th October 2005 19:31
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58
mail() function not available in PHP??? dirk Programming/Scripts 4 26th May 2005 15:18

All times are GMT +2. The time now is 17:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.