Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th November 2007, 23:04
Devil Devil is offline
Junior Member
 
Join Date: Apr 2007
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy Virtualmin/Webmin, Postfix, Virtual server.. problems on CentOS5

Hello,

I installed Virtualmin using their free GPL'd install script on a fresh install of CentOS5.
Currently, this server all it needs to do is serve http and send out signup/confirmation/activation emails generated by PHP scripts.

So, using Virtualmin, I added a virtual server called domain.com. Domain.com has http being served, ftp, mysql is also working, but mail is being a problem. Virtualmin installs Postfix as the mailer.

domain.com's email is being handled by GoDaddy. But I just want the scripts to be able to send out all the generated emails from the CentOS server/postfix.

For example, the domain's admin should be able to send out whatever email addr he wants:
I want it to go out like script@domain.com, instead of apache@myserver.hostname.com

I tested it out, I sent emails using Usermin to @msn (failed 4 out of 6 times), @gmail (all success), @domain1 and @domain2 (handled by GoDaddy's email again, where all was successful to go to @domain1, but 100% failure on @domain2)
The custom domains have no spam/junk controls.


Now, if I want the emails to go with 99% success rate, what do I need to change in postfix configuration?

Please, please help.
Reply With Quote
Sponsored Links
  #2  
Old 6th November 2007, 22:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can set the correct sender address in the $additional_headers in PHP's mail() function. See http://es.php.net/manual/en/function.mail.php

If you have an SPF record for your domains, make sure that the sending server is included there.
__________________
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
  #3  
Old 6th November 2007, 23:14
Devil Devil is offline
Junior Member
 
Join Date: Apr 2007
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
You can set the correct sender address in the $additional_headers in PHP's mail() function. See http://es.php.net/manual/en/function.mail.php

If you have an SPF record for your domains, make sure that the sending server is included there.
That's the thing, I don't know anything about setting up an SPF for my mail server so mail going out from all the virtual domains hosted on the server do not get classified as spam.
Reply With Quote
  #4  
Old 7th November 2007, 00:24
Devil Devil is offline
Junior Member
 
Join Date: Apr 2007
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Also, I guess I'll need to do stuff for Hotmail.
As currently, Gmail takes my email everytime. Yahoo takes it 9 out of 10 times, and would give an error sometime:

421 Message from (63.xx.xx.xx) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html)

And when I send email to hotmail, the mail server doesn't get any errors.. but the mail doesn't arrive in hotmail/msn's inbox, nor the junk folder.

What needs to be done?
Reply With Quote
  #5  
Old 7th November 2007, 15:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Are you managing the DNS records for your domain yourself, or who does it?
__________________
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 7th November 2007, 21:19
Devil Devil is offline
Junior Member
 
Join Date: Apr 2007
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Are you managing the DNS records for your domain yourself, or who does it?
DNS is hosted at GoDaddy and I control it. I even added an SPF record for @
I hear the Yahoo/Gmail rely on SPF, but even before I put on SPF they would rcv the emails.

Even now, Yahoo/Gmail work properly. Except sometimes I get that error from Yahoo. Currently in talks with Yahoo to get us whitelisted.

Hotmail is the only one that hasn't worked even once. No error on my side, but no email in the hotmail inbox/junk folder.
Reply With Quote
  #7  
Old 8th November 2007, 19:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

You can use this wizard: http://old.openspf.org/wizard.htm to find out how your SPF record should look.
Compare this to the output of
Code:
dig txt 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
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
php Apps email not going through palkat General 8 21st September 2011 05:35
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota... killfrog HOWTO-Related Questions 3 25th September 2009 21:45
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs k1piee HOWTO-Related Questions 14 1st October 2006 13:46
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 13:04.


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