Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th May 2011, 17:27
pnoiboi77 pnoiboi77 is offline
Junior Member
 
Join Date: May 2011
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default php mail() function slow with new ispconfg3 setup

On my old shared hosting, everytime I used the php mail() function to email customers that visisted my site, the email would arrive real quick. Now I have setup my own server (ispconfig3 fedora 12 perfect server tutorial) and when I run the function, the email takes forever.

Is there a setting I need to tweak in ispconfig3 or manually(in the server itself) that can help me accomplish mailling in real time?
Reply With Quote
Sponsored Links
  #2  
Old 19th May 2011, 12:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Normally it should take about 30 seconds until a mail gets delivered, as the mail gets scanned for spam and malware.

Are you sure that the hostname of your server and the sender domain is setup correctly in DNS?

How many mails are in your mailqueue and did you get any errors in the mail log file?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 19th May 2011, 22:50
pnoiboi77 pnoiboi77 is offline
Junior Member
 
Join Date: May 2011
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I bought the domain from go daddy and just changed the A record in go daddys zone file to point to my static ip address. I didnt set up the dns zone on my server.

Am i supposed to? Please help me because dns is another learning curve I havent accomplished.
Reply With Quote
  #4  
Old 19th May 2011, 22:53
pnoiboi77 pnoiboi77 is offline
Junior Member
 
Join Date: May 2011
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can u help me locate where my mail queue is and where the mail error log would be. Im running a fedora 12 server.
Reply With Quote
  #5  
Old 20th May 2011, 01:32
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
Default

You can take a look at your mail queue by running
Code:
postqueue -p
Does the MX record of your domain point to the correct server? You can check that by running
Code:
dig mx yourdomain.com
__________________
Falko
--
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
  #6  
Old 20th May 2011, 01:56
pnoiboi77 pnoiboi77 is offline
Junior Member
 
Join Date: May 2011
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

my hostname is server1.mycomputerhostname.com

postqueue -p

theres only 1 in the queue(which i sent this morning) and it says apache@server1.mycomputerhostname.com
(host d.mx.mail.yahoo.com[209.191.88.254] refused to talk to me: 553 5.7.1[BL21]Connections will not be accepted from (my static ip addres), because the ip is in Spamhaus's list; see http://postmaster.yahoo.com/550-bl23.html) myemailaddress.com

-- 2 kbytes in 1 Request

dig mx mydomain.com
in the answer section there are 2 records with my domain name and the matching mx records in godaddys zone file
Reply With Quote
  #7  
Old 20th May 2011, 14:34
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
Default

Quote:
Originally Posted by pnoiboi77 View Post
my hostname is server1.mycomputerhostname.com

postqueue -p

theres only 1 in the queue(which i sent this morning) and it says apache@server1.mycomputerhostname.com
(host d.mx.mail.yahoo.com[209.191.88.254] refused to talk to me: 553 5.7.1[BL21]Connections will not be accepted from (my static ip addres), because the ip is in Spamhaus's list; see http://postmaster.yahoo.com/550-bl23.html) myemailaddress.com
Your server is blacklisted, which means other servers might refure to accept mails from your server.

Quote:
Originally Posted by pnoiboi77 View Post
dig mx mydomain.com
in the answer section there are 2 records with my domain name and the matching mx records in godaddys zone file
Do these two records point to your mail server?
__________________
Falko
--
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
  #8  
Old 20th May 2011, 21:35
pnoiboi77 pnoiboi77 is offline
Junior Member
 
Join Date: May 2011
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks for all the replies, but i finally fixed the problem.

The problem is, the IP's my ISP provided me happened to be on Spamhaus.com PBL ban list.

Just follow the directions to remove your ip address. Ill provide the link!
http://www.spamhaus.org/lookup.lasso

the directions are pretty straight forward on the site.

It says it takes about 30 minutes to take effect, but it took about 12 hours (overnight) for me. Now emails are received in about 2 seconds!!!!!
Reply With Quote
Reply

Bookmarks

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
A lot of errors after instalation adam_clayton Installation/Configuration 1 1st February 2011 16:12
Postfix + postfixadmin = SMTP errors... Rashef Server Operation 4 25th June 2009 17:12
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 02:27
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 10:50


All times are GMT +2. The time now is 21:28.


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