jump to navigation

Setting a “smarthost” in Postfix September 7, 2005

Posted by Carthik in administration, ubuntu.
trackback

Since Postfix is the default Mailer used in Ubuntu, and since you may need to set a smarthost to possibly send outgoing mail through the SMTP server on a webserver, or your ISP, here’s how to do that:

Edit /etc/postfix/main.cf, and add or edit this line:
relayhost = your.server.com

Followed by restarting the postfix service:

$sudo /etc/init.d/postfix restart

This might be handy particularly for those who use a combination of Mutt + procmail + fetchmail to read their mail – old style. 

 

Comments»

1. Grateful - July 5, 2006

Very handy – just what I was looking for.

2. Ubuntu Blog » Participate in the Popularity Contest - July 16, 2006

[...] You can choose to submit stats via http, or via email. Both are automated processes, and I’d choose http for the convenience. If, however, you do choose email, note that you might have to take a small additional step to enable postfix to send the email properly. You can follow the instructions to setup a “smarthost” in postfix to ensure that your email gets sent and received without problems. I have my popcon set up to use the http protocol to send information. Since it is anonymous, it is not a threat to your privacy. So go ahead, and give ‘em some feedback. [...]

3. attic » Blog Archive » Piedalieties Ubuntu “popularitātes sacensībās” - July 17, 2006

[...] Tiek piedāvāta iespēja vai nu sūtīt informāciju izvēloties HTTP protokolu vai arī sūtīt pa epastu. Lai varētu sūtīt informāciju pa epastu, nepieciešams uzskaņot postfix (apraksts). [...]

4. Marston - October 19, 2006

Just found this post, good info.

But how do you set postfix up to be a smarthost when the external SMTP server requires authentication and TLS? i.e in my case I’m using Google’s external SMTP server. Thanks.

Tobias - March 18, 2014

Ultimate network adtepar settings to be done is same as discussed in this article, however steps will be different to reach network adtepar properties as listed below:1). Open Network Connectionsa0(Start >> Control Panel)2). Right click on the Network Connection, then click Properties3). Click Configure button4). Now disable large send offload option.Please note that TCP/IP large send offload is available only on the Network Adapters which support this feature.

5. junck - February 12, 2007

Great Post,

I could not send any emails to my ISP accounts. My ISP ‘refused to talk, 554′. I edited the main.cf file as you suggested and all is working fine. I can now send and recieve mail in and out of my network with postfix. Thanks.

6. Jon - February 16, 2007

Marston: There’s some format for this. Something like:

user:pass@smtp.yourmailserver.com

That’s not right, but it’s something like that.

7. Getting Textpattern to sendmail (3) « Computers at Werrington PS - August 5, 2007

[...] the DET smtp server. I put than in at etc/postfix;/main.cf Here is the very basic what to do… “Setting a Smarthost in Postfix” BTW – using the sudo /etc/init.d/postfix [...]

8. Scott Lindner - January 13, 2008

This doesn’t work. I have an older smarthost configuration working with sendmail. I’m attempting to upgrade to a newer Ubuntu system using Postfix. This “trick” doesn’t work for a couple of reason. For one, Postfix complains that myhostname and relayhost cannot be the same. So I changed relayhost to be exactly the text in this post “your.server.com”. Of course that didn’t work.

I think there is some confusion over what a relay is, and what a smarthost is. This may be why Postfix does not seem to be able to do smarthost’ing.

Thoughts? Please respond. I very much want to get this working and if I’m wrong I really want to know.

9. Gregg - January 20, 2008

http: www dot michael-prokop.at/postfix/ This worked for me

10. Pascal - March 3, 2008

the provided information is in fact _not_ very helpful. the above configuration will only work with an open relay. in other words: the premium invitation to all the spammers in the wide, wide world.

please, with the above slogan “Not quite everything about Ubuntu, but close”, just try to avoid articles like this one an try to act a little more _sensible_

11. jobsearch - April 21, 2008

This is a a useful bit of info. I was having problems sending emails to my ISP accounts too but once I edited the “.cf” file it now works great. Thanks for the tip.

12. graduate jobs - April 21, 2008

Yes I had the same problem too, thanks for the advice.

13. driving jobs - April 21, 2008

But how do you set postfix up to be a smarthost when the external SMTP server requires authentication and TLS?

14. Olly - June 5, 2008

#default_transport = error
#relay_transport = error

if you have the above lines in the main.cf
make sure you comment them if you want to send email.

15. GB - September 16, 2008

Didn’t work for my ISP using either the fqdn (mail.ispname.net) as it complained about an mx record lookup issue. So I replaced it with just “ispname.net” (so it could find the mx record itself) and I was back to the previous errors I had.

*** Finally, when I replaced the domain name with the IP ADDRESS of the ISP’s mail server it finally accepted my mails.
It had previously complained of “poor reputation of the MTA” or words to that effect.

16. links for 2008-12-17 « O0o. Pathfinder .o0O - December 17, 2008

[...] Setting a “smarthost” in Postfix « Ubuntu Blog (tags: ubuntu mail) [...]

17. Ivan Versluis - March 10, 2009

Thanks! It worked fine for me with JeOS ubuntu 8.04 and internal SMTP relay.

18. none - October 19, 2009

Instead of relying on this post to configure your postfix Email server, you could better by reading documentation on http://www.postfix.org

19. Roo’s View » Blog Archive » Earning Trust for Your Email Server - December 30, 2009

[...] your own mail server, then setting it up to use your ISP as a smarthost is the easy way to go (very easy with Ubuntu), of course I didn’t take that [...]

20. find a job - March 28, 2010

Hi, Does this work on the latest version Ubuntu?

21. pet izmir - August 2, 2010

thenk you man, bknz : pet izmir

22. seks izle - September 29, 2010

But how do you set postfix up to be a smarthost when the external SMTP server requires authentication and TLS? i.e in my case I’m using Google’s external SMTP server. Thanks.

23. ukrayna vizesi - July 30, 2011

İYİ

24. arkadaş - August 6, 2011

süper payşım teşekkürler

25. antalya böcek ilaçlama - August 7, 2011

antalya ev ilaçlama

26. vizw - August 17, 2011

iyi

27. www.kizmazlarevdenevenakliyat.com - October 9, 2011

teşekur ederım

28. видеоуроки по wordpress - January 5, 2012

Hey there, You have done a great job. I will certainly digg it and individually suggest to my friends. I am sure they will be benefited from this web site.

29. Lan Samba Server. Want it to notify me when disk is running low via email? - February 5, 2012

[...] up a smarthost in postfix (presuming you are still using postfix on ubuntu) http://embraceubuntu.com/2005/09/07/…st-in-postfix/ which would usually be a relay provided by your ISP, ask them about it, or search around. Then once [...]

30. guvenlik kameralari - February 19, 2012

Thanks! It worked fine for me with JeOS ubuntu 8.04 and internal SMTP relay.

31. Jens - June 14, 2012

Thanks for that! I hate it, when im trying something for hours with no result…

32. Kenny - June 15, 2012

Yes that is true. Can remeber, that i tried that some month ago and quitted it then.

33. Norbert - June 22, 2012

Very helpful article. Thanks you took the time to write it down!

34. Ralle - June 26, 2012

Great Job, this is a really good article.

35. Husband - June 27, 2012

Nice Site, i will sure come back to visit ur blog again!

36. Free Sextube - June 28, 2012

Guys, how about writing some good new articles?

37. Gratis Redtube Pornos - July 3, 2012

They are busy!

38. XNXX - August 8, 2012

This helps a lot, i wish you would write some more tutorials!

39. Youporn - August 14, 2012

This was very helpfull, THANKS!

40. Pornos - August 16, 2012

Nice article. Your posts are very good for beginners!

41. Pornos - August 17, 2012

Really good work. It runs perfect!

42. Handygirls - August 21, 2012

Nice work man! That helps a lot!!!

43. Gratis Pornos - September 25, 2012

Good work, was very helpfull!

44. www.redtube.com - September 30, 2012

Though it’s a very good pice of work, it didn’t help me..

45. XXX - October 3, 2012

That doesnt work for me *cry* :(

46. Youporn - October 4, 2012

For me neither. Damn it! :(

47. Redtube XXX Pornos - October 9, 2012

I dont understand, why so much of you having problems with this.

48. private Handy girls - October 20, 2012

maybe try solving the problems on your own

49. XVideos - November 26, 2012

Thank you very much for this helpfull script!

50. Movie2k Videos - December 4, 2012

Thank you for this nice blogposting!

51. Scharfe Granny - January 19, 2013

A very nice blog I really like to read

geile Cumshot FIlme - January 19, 2013

Thanks for this blog dude!

52. Feuchte Youporn Pornos - January 24, 2013

Feuchte Youporn Pornos warten hier auf deinen Besuch, schau sie dir gleich an!

53. Tabulose Fetisch Dominas - January 30, 2013

Ich ruf gerne mal auf geilen Telefon Hotlines an, wenn ich es hart besorgt brauche.

54. kamerasistemi - January 30, 2013

Thanks for this blog dude!

55. kumandasistemi - February 4, 2013

A very nice blog

porno videos von tuben - February 7, 2013

safdsadfsdf

porno gratis ansehen - February 8, 2013

sssssadfa super geile seite

56. youporn sexvideos - February 13, 2013

coole sexvideos von youporn gibts hier

57. Nackte Webcamschlampen - February 18, 2013

Nackte Webcamschlampen erwarten dich hier auf unserer scharfen Sexcam Telefonsex Hotline. Da gehts echt ab!

58. birhavuz - February 24, 2013

A very nice blog

59. Sasha Grey - March 4, 2013

Super seite viel erfolg…

60. havuzkimyasallar - March 20, 2013

A very nice blog

61. Sexcam und Sexchat Girls - April 9, 2013

Tabulose Sexcam und Sexchat Girls erwarten dich bereits splitternackt in unserem scharfen Livechat. Dort kannst du dir sicher sein, dass du gleich sofort losficken kannst und keine wertvolle Zeit vergeudet wird. Also wenn du mal wieder Bock auf ein paar dreckige Sexcam und Sexchat Girls hast, dann komm gleich vorbei im Fickchat!

62. Telefonsex - April 26, 2013

Telefonsex mit richtig gielen tabulosen Schlampen bekommst du nur hier auf unserer einzigartigen Sextube. Dort warten wirklich einzigartige scharfe Weiber nur darauf mit dir intim zu werden. Komm also gleich mal vorbei und probier es mal aus. Du wirst sehen, dass Telefonsex nicht gleich Telefonsex ist…

63. Sex Porno Filme - May 9, 2013

Die geilsten Sex Porno Filme warten bereits auf deinen harten Schwanz. Wenn du mal wieder Lust hast auf richtig scharfe Weiber, die dir wirklich alles zeigen wollen, dann solltest du gleich mal bei uns vorbeikommen und einen Bilck auf die kostenlosen Sex Porno Filme werfen.

64. Mobile Handy Pornos - May 15, 2013

Wie einfach es ist eine tolle Seite zu finden die noch dazu richtig viel Spaß macht. Einfach mal vorbeikommen und die geilen Mobilen Handy Pornos ansehen!

65. Milf Porno Tube - May 23, 2013

Geile Seite für scharfe Milf Abenteuer ;)

66. Kostenlose Handy Pornos - June 2, 2013

Tolle Seite für Mobile Pornos

67. diskret Fremdgehen - June 9, 2013

schön diskret fremdgehen zu können

68. XVideos Kostenlose - June 10, 2013

Toll! aber besser sind unterwegs geile Pornos!

69. XVideos Kostenlos - June 10, 2013

ja!

70. Gratis Porno Tube mobil - June 28, 2013

Die Gratis Porno Tube mobil bringt dir geile Videos direkt aufs Handy!

71. Gratis Porno Tube mobil - June 28, 2013

Wollt ich nurmal gesagt haben.

72. Telefonsex Analsex Hausfrauen - July 5, 2013

Mit unseren einzigartigen Telefonsex Analsex Hausfrauen kannst du wirklich scharfe Fickgespräche führen, die ich zu intensiven Höhepunkten bringen.

73. ses sistemi - July 18, 2013

A very nice blog

74. Pornos - July 23, 2013

Mal wieder Bock auf ein paar geile Pornos? Dann komm doch einfach mal hier bei uns zum Wichsen vorbei!

75. Omas Pornos - July 28, 2013

Wer will eine alte Oma ficken?

76. Geile Telefonsex Omas - July 29, 2013

Ich habe auch alte Omas anzubieten!

77. Günstiger Handy Telefonsex - August 2, 2013

Günstiger gehts kaum ;)

78. Echte Sexcam Schlampen - August 11, 2013

Einfach mal geile und echte Sexcam Schlampen erleben ? Das kann man hier!

79. Youporn Fickfilme - August 23, 2013

Tausende geile Youporn Fickfilme kannst du dir direkt ohne Kosten auf unserer scharfen und tabulosen Pornotube anschauen. Dort warten bereits zahlreiche scharfe Luder darauf von dir angeschaut zu werden. Warum kommst du also nicht gleich mal zum Wichsen bei uns vorbei?

80. xHamster Porno Tube - September 3, 2013

Geile willige Frauen, die es dir besorgen wollen!

81. Gayboy - September 10, 2013

Die neue Gaytube bringt dir täglich die besten Gaysex Pornos. Schau dir geniale Gayvideos gratis an!

82. XNXX - September 18, 2013

Wenn du dir scharfe Filme von XNXX anschauen willst, dann kannst du auch unser Videoportal zählen. Da kommen tagtäglich neue Filme ins XNXX Archiv!

83. Handy Girls aus Hannover - September 19, 2013

Willst du dich mit heißen Handy Girls aus Hannover vergnügen dann bist du hier genau richtig!

84. Fotzen - October 3, 2013

Wie wäre es wenn du einfach Spaß haben kannst? Hier geht das!

85. plastikkabin - October 10, 2013

plastik kabin hoparlör

86. Telefonsex Girls aus Frankfurt - October 16, 2013

Jede Menge Telefonsex Girls aus Frankfurt wollen deine Bekanntschaft machen und dafür sorgen, dass du endlich mal wieder ein paar tabulose Stunden zu zweit verbringen kannst. Lass dir dieses geniale Abenteuer nicht durch die Lappen gehen!

87. Private Amateur Pornos - October 22, 2013

Private Amateur Pornos de Extraklasse erwarten dich auf unserer scharfen Sextube, wo jede Menge heisse Filme auf dich warten.

88. Kostenlose Fick Tube - December 24, 2013

Schau dir hier auf der kostenlosen Fick Tube ein paar echt heisse Bumsfilme an, die dir garantiert gefallen werden

89. http://www.telefonsex-pervers.org/ - December 27, 2013

Wow. Das ist einfach der Wahnsinn was diese Frauen mir so beigebracht haben. Ich kann es echt jedem empfehlen!

90. Bizarre Fetischspiele am Sextelefon - January 10, 2014

Hey wenn ihr mal Lust habt etwas bizarres und aufregendes zu erleben, dann seid ihr genau richtig!

91. Telefonsex Anal mit tabulosen Frauen - January 15, 2014

Von Hinten machts einfach am meisten Spaß! :)

92. Telefonerotik Huren - February 4, 2014

Lerne unsere heissen Telefonerotik Huren kennen.

93. www.telefonsexmarie.com - February 10, 2014

Magst du Frauen am Telefon? Hier kannst du ihnen etwas geiles abverlangen und sie werden es gerne machen. Einfach mal vorbeischauen und Spaß haben!

94. Thai Girl - April 21, 2014

Diese geilen Thais mögen es in ihren Arsch gebumst zu weren.

95. Deutsche Pornos von der Free Sextube - May 9, 2014

Schau dir mal diese Videoauswahl an!

96. Milfsexxx - June 14, 2014

It’s not my first time to pay a visit thiis website, i am browsig this site dailly and get
fastidious data from here every day.

97. fashion hats - June 19, 2014

Hey! This is kind of off topic but I need some help from an established blog.
Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty quick.
I’m thinking about making my own but I’m not sure where to start.
Do you have any ideas or suggestions? Appreciate it


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 518 other followers

%d bloggers like this: