Reply
my server doesn't send mails except mails through smtp
Old 01-16-2009, 09:57 PM my server doesn't send mails except mails through smtp
Average Talker

Posts: 15
Trades: 0
in my forums i must use smtp method to send mails and it delivered to all the mail providers hotmail gmail yahoo etc and if i didn't use the smtp the mail will not be delivered

but there is some scripts that doesn't have smtp method in configration so it send the mails through the regular mail php function i think

tried a lot of scripts it's all has the same problem

so can anyone help
hossamhamdi1986 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 01-17-2009, 04:01 AM Re: my server doesn't send mails except mails through smtp
chrishirst's Avatar
Super Moderator

Posts: 22,224
Location: Blackpool. UK
Trades: 0
ALL emails are sent via SMTP.

Your host probably need to provide a reverse DNS lookup (PTR Record)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-18-2009, 06:09 PM Re: my server doesn't send mails except mails through smtp
Average Talker

Posts: 15
Trades: 0
more info will help i don't know what is that
hossamhamdi1986 is offline
Reply With Quote
View Public Profile
 
Old 01-18-2009, 06:11 PM Re: my server doesn't send mails except mails through smtp
Average Talker

Posts: 17
Name: Gordon MacDonald
Trades: 0
Do you know if the sendmail(); function is enabled on the server?
__________________
visit my site! http://www.gmdLive.co.cc
http://www.txtMe.co.cc/ <--> FREE SMS TXT Messaging!
GordyMac is offline
Reply With Quote
View Public Profile Visit GordyMac's homepage!
 
Old 01-18-2009, 06:40 PM Re: my server doesn't send mails except mails through smtp
chrishirst's Avatar
Super Moderator

Posts: 22,224
Location: Blackpool. UK
Trades: 0
A PTR record is the opposite of an "A" record in the DNS zone file.

whereas an A record points a hostname to an IP. A PTR record maps an IP to a hostname.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-18-2009, 08:04 PM Re: my server doesn't send mails except mails through smtp
Average Talker

Posts: 15
Trades: 0
thx for the help but:

@GordyMac mail function is working but no mails arrive

i tested it with this code
PHP Code:
<?php
$message 
"Line 1\nLine 2\nLine 3";
mail('mail@mail.com''test subject'$message);
?>
when i tested it on hotmail yahoo gmail it didn't arrive
when i tested it on mail@mydomainname.com it arrived

@chrishirst

the problem is i'm newbie here so i can't understand what u talking about
hossamhamdi1986 is offline
Reply With Quote
View Public Profile
 
Old 01-18-2009, 08:57 PM Re: my server doesn't send mails except mails through smtp
Average Talker

Posts: 17
Name: Gordon MacDonald
Trades: 0
Its not by chance getting filtered out in your junk mail?
__________________
visit my site! http://www.gmdLive.co.cc
http://www.txtMe.co.cc/ <--> FREE SMS TXT Messaging!
GordyMac is offline
Reply With Quote
View Public Profile Visit GordyMac's homepage!
 
Old 01-18-2009, 09:11 PM Re: my server doesn't send mails except mails through smtp
Average Talker

Posts: 15
Trades: 0
i dont think that because three things
1- i closed the junk folder in hotmail.
2- i sent to 3 mail systems "hotmail, yahoo, gmail" if one of them filter it as junk i don't think all will
3- i had forums on the same server which is using phpbb3 and it deliver the mails only when smtp setting in the admincp are active

hossamhamdi1986 is offline
Reply With Quote
View Public Profile
 
Old 01-18-2009, 09:59 PM Re: my server doesn't send mails except mails through smtp
Average Talker

Posts: 17
Name: Gordon MacDonald
Trades: 0
Hmmm ... ya got me... sorry my friend.. ya got me interested to know what is wrong now though..
__________________
visit my site! http://www.gmdLive.co.cc
http://www.txtMe.co.cc/ <--> FREE SMS TXT Messaging!
GordyMac is offline
Reply With Quote
View Public Profile Visit GordyMac's homepage!
 
Old 01-19-2009, 11:37 AM Re: my server doesn't send mails except mails through smtp
chrishirst's Avatar
Super Moderator

Posts: 22,224
Location: Blackpool. UK
Trades: 0
Some of the things you need to stop Hotmail, Gmail, Yahoo!, AOL and other providers using server filtering with SpamAssassin or similar or having "blackhole" filtering (SpamHaus etc) from sending mail direct to junk are:

Correctly formatted headers for the From: and/or Sender: names.

The To: header being the actual recipient rather than "list member", "undisclosed recipients" or some other such generic entry with the actual recipient sent in the BCC field.

less than 50 names in the CC and/or BCC fields.

The sender IP having a reverse DNS lookup at the authoritative name server.

The "from" hostname having a SPF or TXT record in DNS.

Not all these are required, but at the very least rDNS and correct From: headers are essential
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to my server doesn't send mails except mails through smtp
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.14037 seconds with 13 queries