| Linode Forum https://forum.linode.com/ |
|
| Google Apps Email on Ubuntu 12.04 Linode https://forum.linode.com/viewtopic.php?f=11&t=9701 |
Page 1 of 1 |
| Author: | livefree [ Sat Jan 12, 2013 8:28 am ] |
| Post subject: | Google Apps Email on Ubuntu 12.04 Linode |
Hello All, Have managed to configure my linode to send and receive emails through Google Apps Email but not quite 100% there, was hoping someone could point me in the right direction? The only thing that isn't working correctly is the emails that are generated by some of the plugins operating on my website. When the email is sent, it is sent via: Live.Free.Die.Travelling@(**servername**).livefreedietravelling.com as a result the emails are being filtered as spam. I would like to have the emails sent from: (defaultusername)@livefreedietravelling.com This is my first time using both Google Apps for Email and adjusting my email configurations so apologies if this is easy stuff, I can't quite work it out. My DNS configuration can be found in screenshot and link below (I suspect this is where something is wrong?): http://snag.gy/OXbzY.jpg Again, thanks to anyone that can provide a bit of help on this one. Regards, Paul
|
|
| Author: | derfy [ Sat Jan 12, 2013 8:41 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
You censored the ip addresses, yet gave us the domain name. You...do know what DNS is for, right? |
|
| Author: | livefree [ Sat Jan 12, 2013 8:45 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
HA! Yeah, wasn't thinking... nevermind. Don't suppose you could offer any help on the problem could you? Thanks, Paul |
|
| Author: | hoopycat [ Sat Jan 12, 2013 9:06 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
What is your application using as its From: address? Do you have a copy of the headers of one of the messages in question? |
|
| Author: | livefree [ Sat Jan 12, 2013 9:25 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
Application email address is set to send as exampleemail@livefreedietravelling.com but for some reason it doesn't send as that. Header, Sure thing...
|
|
| Author: | obs [ Sat Jan 12, 2013 9:54 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
Try adding the sendmail -f parameter in your php mail script to the from address. See http://uk1.php.net/manual/en/function.mail.php Another option would be to send via SMTP through google but then you maybe hit by google's sending limit. |
|
| Author: | livefree [ Sat Jan 12, 2013 10:43 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
Hi Obs, Thanks for that suggestion, I edited my php.ini file as below, mail is sending but still with the original problem. Any other ideas? Code: sendmail_path = "/usr/sbin/sendmail -t -i -fXXXXXX@livefreedietravelling.com" Does my A/AAAA Record, hostname: 'mail' have anything to do with this? Thanks, Paul |
|
| Author: | hoopycat [ Sat Jan 12, 2013 10:49 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
DNS doesn't have much to do with this; it's entirely up to your application to send the correct From: header when sending mail. (Or, more specifically, it's up to PHP to let you change that.) |
|
| Author: | livefree [ Sat Jan 12, 2013 10:54 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
Why do you think the -f over-ride is not working then? |
|
| Author: | hoopycat [ Sat Jan 12, 2013 11:40 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
It looks like you're using Sendmail-brand SENDMAIL(tm), which I've not used in quite awhile. But, at least with Exim-brand sendmail, it does work OK. (See snippets below.) You might want to check your mail log (usually /var/log/mail.log or thereabouts) to see if it is reporting any errors; it's possible that your application is running as a user which isn't allowed to use the -f option, and it should log about that. Alternatively, you might be editing the wrong php.ini file: it loads different files depending on whether you're using command line php, mod_php, or PHP-FPM. If you try 'sendmail -t -i -f...@...' from the command line, that would at least eliminate the MTA itself as a problem (but it could still be disallowing -f for other users); it'll sit and await your input, which should consist of a few headers (most importantly, To:), followed by one blank line, followed by a message, and then followed by ctrl-D on a line of its own. Then, you can check what comes out the other end. Code: rtucker@witte:~$ sendmail -t -i Code:
Code: rtucker@witte:~$ sendmail -t -i -frtucker@hoopycat.com Code:
|
|
| Author: | livefree [ Sun Jan 20, 2013 7:10 am ] |
| Post subject: | Re: Google Apps Email on Ubuntu 12.04 Linode |
Hi hoopycat, thanks so much for your post, really helped! I've managed to configure my wordpress site using an SMTP plugin (http://wordpress.org/extend/plugins/wp-smtp/) figured it might be useful for someone to know. Thanks again and take care, Paul |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|