PDA

View Full Version : [ubuntu] configuring postfix to use external smtp server



boneill3
November 23rd, 2008, 07:55 AM
Hello and thank you for helping me out with this!

I currently have postfix set up to use gmail smtp server for outgoing mail. I set this up because yahoo was not taking my emails since it is coming from a residential ip.

Would it be possible to use a external smtp server like smtp.gmail.com but have the outgoing emails not use the gmail login for the from field.

So I want to send mail as root@ubuntu.com for example, but it's sending as brian@gmail.com

is this possible or should I just create a new gmail account?

Thanks!

boneill3
December 8th, 2008, 01:49 AM
Is there any info I can give to get an answer to this? Anyone know if this is possible? Thanks.

troyready
December 8th, 2008, 02:03 AM
I don't believe this is possible with gmail. All mail authenticated with your user name on their server will be sent "FROM" that username.

I relay my mail through AT&T's mail servers, and they don't do this.

hictio
December 8th, 2008, 03:09 AM
You should ask you ISP, it is pretty likely that they have an SMTP server that you can use, configuring your the Postfix setup on your box to send all the outgoing email thru that server.
On the Postfix's config file, look for the option:



relayhost =


Add the server's hostname that your ISP tell you, and restart Postfix to make the change active.

Usually these SMTP servers have a limit, or a cap, if you try to send more than X amount of emails per minute, it is pretty common to ban the offending IP address.

ekrack
December 8th, 2008, 04:03 AM
I can send staright from my box using DDNS

Received-SPF: neutral (google.com: 68.XXX.XXX.85 is neither permitted nor denied by best guess record for domain of ekrack@postfix.homelinux.com) client-ip=68.XXX.XXX.85;
Authentication-Results: mx.google.com; spf=neutral (google.com: 68.XXX.XXX.85 is neither permitted nor denied by best guess record for domain of ekrack@postfix.homelinux.com) smtp.mail=ekrack@postfix.homelinux.com

I better start reading
http://www.postfix.org/documentation.html