Test Configuring Postfix to Send Mail from Mac OS X Mountain Lion - BenjaminRojas.net

Configuring Postfix to Send Mail from Mac OS X Mountain Lion

I recently upgraded my Mac to use Apple’s latest operating system, Mountain Lion, and in so doing, wiped out my postfix configuration that I had previously set up with advice from many different blogs. Postfix is essential for my line of business where I send many emails through MAMP on my local machine.

After hours of updating settings and getting nowhere, I stumbled across a blog post that set me in the right direction.

Rather than do this process again when Apple releases a new upgrade, I decided to document the steps I took to get this working (more for a reference for myself, but also to help those with the same issues).

I personally use Google Apps, so this process is for those also trying to authenticate through Gmail.  This process is much simpler if you don’t need SSL encryption when sending mail.  I use TextMate as a text editor, so the following command line options use the ‘mate’ command.  Alternatively, you can use ‘vi’, ‘vim’ or ‘nano’ depending on what you are familiar with.

Step 1

First, we need to create a Simple Authentication and Security Layer (SASL) password file.  To do this, open up Terminal and enter in the following command:

1
sudo mate /etc/postfix/sasl_passwd

You will be required to enter your root password to edit the file. Enter in the following information, replacing <username@domain.com> with your google apps username and domain or your gmail account, and <password> with your password:

Save and exit.

Step 2

Next, we need to create a postfix lookup for our new SASL password file.  To do this, type the following command in the Terminal:

1
sudo postmap /etc/postfix/sasl_passwd

Step 3

Then we need to configure Postfix’s main.cf file which has all the configuration information for Postfix.  I would recommend backing up this file in case anything happens.  The first line of the following commands does just that, by creating a copy before editing it:

1
2
sudo cp /etc/postfix/main.cf /etc/postfix/main.cf.orig
sudo mate /etc/postfix/main.cf

Most of the information here is commented out.  You just need to scroll down to the bottom and paste in the following lines:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Minimum Postfix-specific configurations.
mydomain_fallback = localhost
mail_owner = _postfix
setgid_group = _postdrop
relayhost=smtp.gmail.com:587

# Enable SASL authentication in the Postfix SMTP client.
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options=

# Enable Transport Layer Security (TLS), i.e. SSL.
smtp_use_tls=yes
smtp_tls_security_level=encrypt
tls_random_source=dev:/dev/urandom

Save and exit.

Step 4

At this point, we just need to start up Postfix with our changes.  Use the following command:

1
sudo postfix start

If you entered in any information incorrectly in the main.cf file, this may throw errors.  Fix the errors and then reload Postfix:

1
sudo postfix reload

Step 5

You can test this configuration by sending a test email from Terminal:

1
date | mail -s test youremailaddress@yourdomain.com

If all goes well, you should receive an email to your inbox.

Step 6

Once you have everything working, you can set Postfix to start on boot by adding a key to /System/Library/ LaunchDaemons/org.postfix.master.plist file.

The key to add is:

1
2
<key>RunAtLoad</key>
<true/>

The updated file looks like this (text version below):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>org.postfix.master</string>
  <key>Program</key>
  <string>/usr/libexec/postfix/master</string>
  <key>ProgramArguments</key>
  <array>
    <string>master</string>
    <string>-e</string>
    <string>60</string>
  </array>
  <key>QueueDirectories</key>
  <array>
    <string>/var/spool/postfix/maildrop</string>
  </array>
  <key>AbandonProcessGroup</key>
  <true/>
  <key>OnDemand</key>
  <true/>
  <key>RunAtLoad</key>
  <true/>
</dict>
</plist>

And that’s it! You should now be able to send mail using Mac OS X and Postfix from a PHP install. I am not an expert at this by any means, but feel free to leave a comment below letting me know if this helped you or if you have any issues with it. I would be glad to help in any way I can!

Posted in Email, Mac, MAMP, Postfix
165 comments on “Configuring Postfix to Send Mail from Mac OS X Mountain Lion
  1. P says:

    You, sir, are a genius. I finally got PHP mail() working on my Mac. I cannot thank you enough.

  2. songyy says:

    Hi thanks for your article. I’ve followed every steps from this tutorial; but it doesn’t work on my Laptop… so I went ahead and followed the blog post you mentioned at the start of the message, but also doesn’t work.

    I also googled this post:
    http://slashusr.wordpress.com/2012/02/14/enabling-postfix-for-outbound-relay-via-gmail-on-os-x-lion-11/
    Still it doesn’t work. I’m having this error message when I enter “mail” command to check new mail:

    : host smtp.gmail.com[209.85.225.108] said: 530-5.5.1
    Authentication Required. Learn more at 530 5.5.1
    http://support.google.com/mail/bin/answer.py?answer=14257
    aa4sm11414435igc.15 (in reply to MAIL FROM command)

    Do you have any idea with it?

    • Benjamin Rojas says:

      songyy,

      I am not sure what the issue is. As long as you are following all the steps correctly, it should work for you. Gmail is a secure mail server and requires authentication, but the above steps should do the trick. Have you confirmed that your credentials are correct?

    • Mark says:

      I know this is a late reply, but for any additional searchers:
      1. I don’t know if you need to do this, but it seemed to make a difference after you change the password file rerun: sudo postmap /etc/postfix/sasl_passwd
      2. If you have enabled 2-step authentication make sure you generate a application password to use instead of your normal password

      Anyway those were just thigns that *seemed to get mine running.

      • Chris Weekly says:

        @Benjamin, kudos for a great guide.

        @Mark, high five for clarifying the need to generate and use an app-specific password for those of us (everyone, nowadays, right?) using 2-factor auth.

        THANKS, BOTH OF YOU!

  3. Rob Gregg says:

    Wow, best guide for configuring postfix on OS X yet I’ve read. So straight forward and easy to read, and everything worked as expected the first time.

    Great job!

  4. Thank you, this is exactly what I’ve needed. Now I just need to figure out how to use this to send email via Java’s Mail api :)

  5. Hello,

    i use Mountain Lion with the Server Application.
    looking in the mail.log file, i just realized that MacOSX Server didn’t set all rights like i should do…

    1. look in the log file

    tail -f /var/log/mail.log

    2. if you get this message, you have the same problem that i had

    Oct 3 11:48:54 MacOsX.Server postfix/postfix-script[59779]: warning: not owned by _postfix: /Library/Server/Mail/Data/mta/./guid_device_maps.plist

    3. check the rights and privileges of the file guid_device_maps.plist

    sudo ls -al /Library/Server/Mail/Data/mta/./guid_device_maps.plist
    -rw-r—– 1 root mail 181 Sep 18 07:40 /Library/Server/Mail/Data/mta/./guid_device_maps.plist

    4. change the owner to _postfix user

    sudo chown _postfix /Library/Server/Mail/Data/mta/./guid_device_maps.plist

    5. check your changes ;)

    sudo ls -al /Library/Server/Mail/Data/mta/./guid_device_maps.plist
    -rw-r—– 1 _postfix mail 181 Sep 18 07:40 /Library/Server/Mail/Data/mta/./guid_device_maps.plist

    6. open the Server Application, go to Email, check the Authentication method, i set it as “Automatic”

    7. finally restart it switching on/off

    sorry if the description isn’t 100% correct, i have my system in german, but i think you know what i mean…

    regards

  6. Thank you, Thank you .. ohh and by the way .. THANK YOU!!!!!

  7. Brendan Taylor says:

    Worked great. Thanks!

  8. Clear and concise. In my case, I had to follow instructions from here too – https://discussions.apple.com/thread/4136501?start=0&tstart=0.

    But all in all, I got it working in under 15 mins.

    Thanks a bunch.

    SS

  9. Ilango says:

    It worked. Thank you so much for the detailed information.

  10. Luc says:

    Perfect, works fine !!
    Thanks a lot man

  11. samiam says:

    Hi ben

    I’ve tried your config tutorial and I’ve been unsuccessful.
    I wanted to run it by you to see if I’m just missing a simple step.

    I’m using MAMP
    1. I changed the settings in the php.ini file to

    [mail function]
    ; For Win32 only.
    SMTP = localhost
    smtp_port = 25

    ; For Win32 only.
    ;sendmail_from = me@example.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ;sendmail_path =/usr/sbin/sendmail -t -i -f myusername@gmail.com

    2. I created the sasl_passwd in the postfix directory adding this text

    smtp.gmail.com:587 :

    3. added the text you recommended to the master.cf file

    4. I tried to run this code from terminal and looked in gmail but nothing posted in the inbox or in the spam folder.

    date | mail -s test myusername@gmail.com

    5. I also tried to run a test php mail() through MAMP and received this apache error code

    [Mon Jan 07 00:11:29 2013] [notice] Digest: generating secret for digest authentication …
    [Mon Jan 07 00:11:29 2013] [notice] Digest: done
    [Mon Jan 07 00:11:29 2013] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4 configured — resuming normal operations
    [Mon Jan 07 00:11:39 2013] [error] [client 127.0.0.1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store

    I’m not really sure where I’ve gone wrong on this, I imagine its something basic, but I’m not sure if it’s a setting in gmail or I’m just missing a step.

    any help would be appreciated.

    best,
    SAM

    • Benjamin Rojas says:

      Sam,

      For the recored, I am also using MAMP, but didn’t change anything within the MAMP configuration (php.ini or anywhere).

      On your step 2, did you put in your Gmail email and password? Or did you just have a blank : ?

      When sending mail from terminal, try sending it to a different email address then the one you are sending from, just to make sure that everything is working right.

  12. Ryan says:

    Nice one. Worked a treat!

  13. George says:

    hello guys. i have used this example and it worked fine until the step 5. when i used a simple example in my code
    $txt = “First line of text\nSecond line of text”;
    $txt = wordwrap($txt,70);
    mail($toemail,”My subject”,$txt);
    is still not working. im having this error message “Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.” how i can fix it? thank you

    • Benjamin Rojas says:

      George,

      This sounds like an external problem, not related to the Postfix issue. Are you still getting this error? Were you able to figure it out?

  14. super says:

    any idea why i am getting this?

    Macs-MacBook-Pro:postfix Mac$ sudo postmap smtp_sasl_passwords
    postmap: warning: smtp_sasl_passwords, line 1: expected format: key whitespace value
    postmap: warning: smtp_sasl_passwords, line 3: expected format: key whitespace value
    postmap: warning: smtp_sasl_passwords, line 4: expected format: key whitespace value
    postmap: warning: smtp_sasl_passwords, line 5: expected format:

    my smtp_sasl_passwords file has:
    smtp.gmail.com:587 myrealemail@gmail.com:mypass

    • Benjamin Rojas says:

      super,

      I am not sure why you are getting these messages, but if you copied and pasted anything, I would try removing all text from the file, and typing it in by hand. That way if there are hidden characters that are causing these errors, they will be removed.

  15. Steve Adams says:

    Thanks for your help in configuring Postfix, gave me the pointers I needed to get my mail command working with our security policies at work

  16. John Eriksson says:

    Thank you so much!

  17. matteo says:

    Thank You So much!!!
    Just a last question, the file /etc/postfix/sasl_passwd what kind of permission should have? It is safe to keep the password in that file whithout changing permission and/or owner?
    Thank you again!

    • Benjamin Rojas says:

      matteo,

      My current sasl_password file is set pretty secure. It is a system file so I have it set to system permissions. My local username does not have access to it and I can only edit it with administrative access.

  18. Awesome! Works perfect! Thank you!

  19. Antonio says:

    Finally, it works! Thanks ;)

  20. Jason says:

    Does this allow you to send email within MAMP via SMTP as well? For instance, when using MAMP and the Swift Mailer library with the SMTP transport.

    I’ve been trying and so far have no luck:
    host: smtp.gmail.com
    port: 587 // also tried 25 & 465
    encryption: tls
    username:
    password:

    • Benjamin Rojas says:

      Jason,

      This method does incorporate SMTP directly through the google account. This is how I am sending out the messages in the first place, as you can see through step 1. My SMTP address is set with my username and password for authentication.

  21. WordWeaver says:

    Thank you very, very much Benjamin for your clear, precise instructions.

    I followed your instructions to the letter, and only encountered one problem at the very end when I attempted to start up postfix.

    The problem was that there was no “spool” directory. However, a quick Google search showed me exactly what I had to do in order to create it.

    Once I created the “spool” directory, postfix began working just great.

    Once again, thank you so very much sir for saving me hours of needless hassle and headaches. :)

  22. Barrington says:

    EXCELLENT! ….Worked like a dream, much appreciation. Thank you

  23. Alex Britez says:

    Worked like a charm! thanks

  24. Andrei says:

    That was so helpful,

    thank you very much!!

  25. Josh says:

    Wish I had found this an hour ago … thank you!

  26. ttmt says:

    I’ve been trying to do this for days and I keep getting the same error in terminal after step 4.

    postfix: fatal: chdir(/Library/Server/Mail/Data/spool): No such file or directory

    Can anyone help with this.

  27. James Clavel says:

    I just implement the methods specified above and worked like magic. although I have been using a different tutorial before on my Snow Leopard, now I just got a new mac mini and set it up for my web development workhorse. Now can use local development as for Email function testing. thanks and definitely worth a space on my bookmark!

  28. Awesome, working. Thanks!

  29. alex says:

    you have just saved my day! thanks dude!

  30. Worked like a charm! Thank :)

  31. theodoros says:

    Dear Ben,
    thank you for your post. I found something relevant at http://blog.deversus.com/2012/07/fix-for-postfix-in-mac-os-x-10-8-mountain-lion/#comment-18035 , by MIKE WALSH on JULY 26, 2012
    where in combination with your post, i finally solved my problem
    I followed your post but i stuck, at step 5.
    Then at by MIKE WALSH’s post at the end i noticed the source of my problem (error: sendmail: fatal: chdir /Library/Server/Mail/Data/spool: No such file or directory). Then I followed the instructions there and I created the directory /Library/Server/Mail/Data/spool
    and then the problem for me was solved !!
    Anyway.., Thank you (both you and MIKE) so much
    Theodoros

  32. Thomas says:

    Thanks ! It works fine.

  33. konjuku says:

    Nice!
    bookmarked forever. Thanks for sharing your experience.

    • Joe J. says:

      Can some please explain then how all emails to my system are being routed to /var/mail/ file? (Thus, when routed there, the user’s Mail never receives them since it’s not with the regular MAILDIR directory – and no, moving them there, or link to it does not work -> I tried)

      This has me befuddled and wanting to shoot the computer. I have NOT set:

      # DELIVERY TO MAILBOX
      #
      # The home_mailbox parameter specifies the optional pathname of a
      # mailbox file relative to a user’s home directory. The default
      # mailbox file is /var/spool/mail/user or /var/mail/user. Specify
      # “Maildir/” for qmail-style delivery (the / is required).
      #
      #home_mailbox = Mailbox
      #home_mailbox = Maildir/

      If I turn on the “Maildir/” option -> then mail is routed to /Users//Maildir

      I cannot for the life of me get it to route to where the IMAP daemon is reading it’s files. I can verify that when I send from one user to another on my system (from outside the domain) – the .SENT MESSAGES folder DOES show the email being sent – so it does find those in the MAILDIR structure – it’s only when sending out that it doesn’t work.

      Is there some parameter, setting, blessing to some mail goddess that will get this to correctly route out?

      I really need some help here.

      If you need to see my main.cf -> please let me know and I’ll forward it – but I can assure you, I’ve bareboned it as much as I can to no avail.

      thanks.

      Joe…

      • Joe J. says:

        Fixed. For those who want to know how – look at this configuration in

        main.cf
        (that file is in: /Library/Server/Mail/Config/postfix)

        The item is:

        mailbox_transport = dovecot

        Seems in the migration from whatever to 10.8, that item is commented out and not set to a default setting. Unfortunately, postfix on Server uses dovecot to actually deliver the messages to the Maildir directories. So, since this wasn’t set, postfix had no way to figure out how to get it to the correct user (who’s directory is really their GUID)…

        Here’s a quick test: enable to two accounts on your box. Then from out side, have account Bob send to account Alice.

        Now, go to Bob’s Maildir -> this will be located in:

        /Library/Server/Mail/Data/mail/

        (you need to determine his GUID – I did it the hard way by looking at the messages in the accounts until I found the ones that matched my user name – there’s another way people said to do it, but it never worked for me)

        Anyway, back to our regularly scheduled explanation: now, look in Bob’s Maildir under his .Sent Messages directory. In there you should see a corresponding message saying he sent the message.

        Go back to Alice’s Maildir and look under the “cur” or “new” directory. If the message from Bob isn’t there – then dovecot is not routing correctly.

        To find out where it’s routing – there are 3 possibilities:

        1) it’s under /var/mail/ (note: not GUID – their account name) – and it’s all in one file – this uses the old style pre-Maildir format for storing the Inbox messages.

        2) It’s under /Users//Maildir – in this case, postfix has given it to dovecot, but dovecot can’t figure out how to handle it – or, you’ve enabled home_mailbox = Maildir/ in main.cf.
        (this is bad. For ML you don’t need to set this, the server admin does this automatically – and when you turn this on this way, the routing ends up in that setup.

        3) It’s somewhere else on your machine – and this one is probably related to the imap:default_partition setting – go check that out by looking at:

        serveradmin settings mail:imap

        Anyway, any of those three are bad – all you really need to do is set the setting above to get the transport agent working correctly.

        Just as an aside, the way I kinda think of things (someone will probably slam me for this analogy, but hey, it’s my head and it works) – postfix is the USPS – it handles getting mail and putting them to the correct post office. Getting it to your door (your inbox) is handled by dovecot. IMAP is nothing more than reading those directories for new items.

        Hope this helps someone else – especially since it took me almost three days of constant researching to finally find out what was wrong with my mail.

        I can post my main.cf if anyone cares -just shoot me an email.

        Joe…

  34. Gerardo says:

    Hi, just a simple and maybe dumb cuestion. Do I need MAMP to make this work?

  35. Andrey says:

    I also recommend to execute that command after creating password file:

    1
    sudo chmod go-rx /etc/postfix/sasl_passwd

    The chmod go-rx sasl_passwd removes the group and other/world read/execute permissions on the password files. Only the root user should be able to read it.

  36. Alan says:

    Can anyone help me clear up the Mountain Lion Server requirements and conflicts?

    Sorry for my apparent ignorance and confusion. I want to clean things up and make mail work again.

    On Lion Server all was well. Since upgrade to ML Server I cannot get mail (“mail -s …..” from command ine) to send.

    ON ML Server there are 2 separate paths to very similar files:

    a. /etc/postfix
    b. /Library/Server/Mail/postfix

    On an ML Server:

    1. Which path is being read?
    2. How can I tell?
    3. Can I safely ignore or remove one of these paths?
    4. How can I choose the path least likely to be mucked up by the next OS update?

    Thank you for your help.

    -alan

  37. SEO收費 says:

    Hello! I just would like to give an enormous
    thumbs up for the great data you could have
    right here on this post. I can be coming again to your blog for more soon.

  38. Bob says:

    God bless You !!!!

  39. Ralph Pass says:

    To get postfix to start on boot on my Mountain Lion computers I needed to change the OnDemand from true to false. After that, it starts on boot, every time

  40. Ameen Ahmed says:

    You sir are the dude \m/.. Thanks..

  41. Eric says:

    Thanks for the awesome post, tried many other ways to get mail working with MAMP and this post was the only one that actually worked.

  42. John says:

    You could simplify this by guide by replacing steps 1 and 2 with writing this into the main.cf:

    smtp_sasl_password_maps = static::

    It sidesteps the need for a user/passwd file by embedding it directly into the main.cf.

  43. Andrew Heron says:

    Dude, this has saved me so much time, you’re a legend!

  44. TheJestr says:

    WTF is mate???

  45. Bercana says:

    I only got as far as step 2… it said “Permission denied”

    • Benjamin Rojas says:

      Bercana,

      Sorry for the late reply. Did you ever get this working? Sounds like this is an issue with sudo not working properly. Did you use the correct password to get sudo access?

  46. John Dial says:

    Upgrading to Mavericks prevents postfix from working for some reason. Of course this happens right before a very important demo. I spent serveral days trying to restore email, until I found this article.

    Thank you very much for taking the time to share your knowledge and experience. You have no idea how much it can mean to the person on the other side of those words.

  47. ron says:

    Thank you, clear and concise, who could ask for more!

  48. Mike E says:

    I wanted to add my thanks!! Your instructions worked great, and saved me lots of time!

  49. Seriously, thanks for this article. You saved me what would have been days of headaches. Much appreciated!

  50. I’m extremely impressed with your writing skills and also with the layout on your weblog.
    Is this a paid theme or did you customize it yourself?
    Anyway keep up the excellent quality writing, it is rare to see a great blog like this one today.

  51. Woah! I’m really loving the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s very
    difficult to get that “perfect balance” between
    user friendliness and visual appearance. I must say you have done a superb job with this.
    In addition, the blog loads extremely fast for me on Opera.
    Excellent Blog!

  52. Glinda says:

    If you would like to take a good deal from this post then you
    have to apply such strategies to your won web site.

  53. At thіs tike itt appears like Movable Tyype is thе top blogging platform aѵailable right now.
    (from what I’ve read) Is that what you’re using on уour blog?

    my web pagе: airsoft pistols dicks sporting goods

  54. This іs really fascinating, You аre an excеssіѵely skillled blogger.
    I have joined your rss feed and look ahead to in ԛuest of morе
    of your great post. Additionally, I’ve shared your site in
    my social networks

    Feel free to surf to my web site – top 10 airsoft guns

  55. Jim says:

    Thanks for the instructions, worked perfectly on Mountain Lion 10.8.5.

  56. search for online dating site are often isolated in their communities and that” homosexuality has not yet been understood widely by families, communities, work places, charity workers, government officers and society as an alright way of living. People in long distance search for online dating site are not exact and can’t be approached with formulas which might work for mathematical equations and scientific experiments. The learning phase requires a lot of people uncomfortable. Building a relationship is completely unhealthy.

    Look at my webpage; relationships dating advice

  57. For most recent information you have to pay a quick visit world-wide-web and on
    web I found this site as a finest web site for most recent updates.

    Also visit my page; free psn codes (Sinfultalesblog.com)

  58. Juan Diego says:

    You’re a fucking genius. You made my day. Thanks!

  59. There aree several reasons why this website beats all
    other places when looking for foreign car parts, Renault car parts, resembling flowers, a bench,
    shrubs and a palm tree. It would toyota 90915-yzzd3 not be refunded the core charge.
    This is a perfect chance for you to save both time and cash instead of going to a physical marketplce to find a list of several that will fit
    your car. At the toyota 90915-yzzd3 same time fulfill the purpose.

  60. Steve Sawin says:

    This is great, but when I do all that mail does not return an error message, but fails to send. The file /var/log/mail.log just has many copies of the message postfix/tlsmgr[11408]: exiting to reopen external entropy source dev/urandom

    Suggests some problem with the dev/urandom thing, but I cannot tell what. Any suggestions?

  61. However, there are agencies that the current tour of Thailand still booming,Womens Barbour Kensington Quilted Jacket Mocha,

  62. The story is simple, not a lot of natural character,the twelve characters written, of course, is to write two more than thirty people without a stronger and more successful,Mens Barbour Bristol Jacket Navy,

  63. Thanks mate. It work like a charm on Mac OSX 10.9.1

  64. Keep tjis going please, great job!

    Also visit my web-site; fort lauderdale cpa firms

  65. Fabrizio says:

    It doesn’t work.
    When I send mail I see it in queue (using mailq command)
    in mail.log i got this:

    connection refused
    TLS is required, but our TLS engine is unavailable
    connect to smtp.gmail.com:587: No route to host

    I have a Mac Book with Mac OS X 10.9.1
    It’s pretty new and I have never touched any other config file

    Any suggestions?

    • Fabrizio says:

      Fixed! The problem was connected to a previous configuration of MAMP PRO.
      It was infact creating a custom main.cf file which had some wrong parameter.
      I have just restored the original file and followed the instructions above and bang! that’s it!
      Thanks for the tip!

  66. Pavani says:

    It helped me: thanks!

  67. Hey there! This is kimd of off topic but I need some guidance 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 thiknking about setting up my own but I’m not sure where to begin.
    Do yoou have any tips or suggestions? Cheers

    my web site: poor credit loans (http://Tracevideo.com)

  68. Nkongme says:

    Not too many howtos out there, where every step functions. Well done. Respect!

  69. Heya! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hackied and I ended up
    losing a few months of hard work due to no backup.
    Do you have any solutions to protect against hackers?

    my website buy ammunition online

  70. Having read this I believed it was extremely informative.

    I appreciate you finding the time and energy to put
    this informative article together. I once again fin myself personally spending a significant amount of
    time both reading and leaving comments. But so what,
    it was still worthwhile!

    Visit my web site: ammo for sale

  71. Pretty component to content. I just stumbled upon you web
    site and in accession capital to claim that I acquire actually loved account your weblog posts.
    Any way I’ll be subscribing tto your feeds and even I sccess you access
    consistently rapidly.

    Check out my site: 9mm ammo for sale

  72. health tips says:

    It’s an amazing article for all the web users; they will get
    benefit from it I am sure.

  73. Tracie says:

    Thanks for a marvelous posting! I actually enjoyed
    reading it, you happen to be a great author.I will always bookmark your blog and may
    come back down the road. I want to encourage that you continue your great posts, have a
    nice weekend!

    Feel free to surf to my weblog … how to
    form a company (Tracie)

  74. Hi there all, here every person is ssharing such knowledge, so it’s fastidious
    to read this website, and I used to pay a quick visit this webpage
    everyday.

    My site: bullets for sale

  75. i.pwned.com says:

    Way cool! Some very valid points! I appreciate you penning
    this article and the rdst off the website is also
    really good.

    my blog: best stretch mark cream, i.pwned.com,

  76. website says:

    The freelancing option is gaining more popularity among pepple of all walks of life
    as an achievable work from home idea that doesn’t take much of ann investment of money.
    Networking and Social Networking webnsites are a great resource ffor finding legitimate
    work online. Visit my website as I will sshow you a step byy step guide on howw you
    can make money online by setting up your first work
    from home website.

  77. Their fires were visible to us day and night, but some of
    them were smoke signals to other natives. A galvanic shock
    could not have cleared him out quicker. Sal and her grandparents
    arrive in Illinois and they paddle in Lake Michigan.

    Check out my blog post; Clumsy Bird cheats

  78. Frank says:

    I got this web page from my friend who informed me about this web
    site and now this time I am visiting this site and reading very informative articles at this time.

  79. Have you ever considered about adding a little bit more than just your articles?

    I mean, what you say is valuable and all.
    However think of if you added some great images or
    video clips to give your posts more, “pop”! Your content is excellent but with
    pics and clips, this blog could undeniably be one of the greatest in itss niche.
    Good blog!

    my website … wanna get laid

  80. Mike iLL says:

    Thanks for the well written, informative article, man. Helped get me through struggle after having upgraded to mountain lion, then back to snow leopard, but at some point smtp had stopped working. I hope you can remove the bullet sales-people from the above commentary. : )

  81. matt says:

    I had this issue at step 2 :

    postfix: fatal: parameter inet_interfaces: no local interface found for 0.0.0.0

    In main.cfg comment out the following line :
    inet_interfaces = localhost
    ( or inet_interfaces = all )

  82. Sam Ciaramilaro says:

    Brilliant! Thanks a bunch.

    And thanks to @Mark for the tip on rerunning -> “sudo postmap /etc/postfix/sasl_passwd” after saving the password file.

  83. Hi there! Thiis is kind of off topic but I nneed some help from an established blog.
    Is it difficult to set up your own blog? I’m not very techincal bbut I can figure
    things out pretty quick. I’m thinking about making my own
    but I’m not sure where to begin. Do you have any points or suggestions?
    Cheers

    my webpage … best dating sites

  84. Crystal says:

    Awesome things here. I’m very glad to peer your
    article. Thank you a lot and I am looking forward to touch you.
    Will you please drop me a e-mail?

  85. Trading as long as a 125cc moped stood the best possible move
    I’ve ever had. This would mean I is now able to take care of the flow
    of traffic

  86. I have followed your instructions and this is working perfectly on my MacBookPro running Mavericks 10.9.2. I have a server, which is a MacMini which is running Mavericks Server 10.9.2. I copied the files from my MacBookPro to the server, put them in the proper places /etc/postfix, checked their permissions, did the postmap, then reload. Sent a trial email, but I never arrives to my account. Is there a log where I could find if there is an error? Both my laptop and server on on the same local network with both having access to the outside world.

  87. I am seeing in the log:
    Apr 19 13:05:25 jwooten37830.com postfix/cleanup[35785]: 227A83C18257: message-id=
    Apr 19 13:05:25 jwooten37830.com postfix/qmgr[32382]: 227A83C18257: from=, size=294, nrcpt=1 (queue active)
    Apr 19 13:05:25 jwooten37830.com postfix/smtp[35787]: connect to smtp.gmail.com[2607:f8b0:400d:c00::6c]:587: No route to host
    Apr 19 13:05:26 jwooten37830.com postfix/smtp[35787]: 227A83C18257: to=, relay=smtp.gmail.com[173.194.68.108]:587, delay=1.7, delays=0/0/0.71/0.99, dsn=2.0.0, status=sent (250 2.0.0 OK 1397927134 j7sm62555545qab.27 – gsmtp)
    Apr 19 13:05:26 jwooten37830.com postfix/qmgr[32382]: 227A83C18257: removed

    No route to host?

  88. the first is your main city where you can add decorations and businesses.

    Your main goal is to build city infrastructure
    various types of buildings. You will find some variants for each of these aircrafts sporting different colors, digital displays and
    modern flight instrumentations.

    My web-site megapolis android hack no survey

  89. Howdy I am so excited I found your blog page, I really found you by error, while I was looking
    on Askjeeve for something else, Regardless I am here now and
    would just like to say cheers for a remarkable post and a all round exciting blog (I also love
    the theme/design), I don’t have time to browse it all at the minute
    but I have book-marked it and also added your RSS feeds,
    so when I have time I will be back to read a lot more, Please do keep up the superb work.

  90. Alva says:

    The battery packs are now beinng replaced at A123′s cost.
    Products and Service – this is where you need
    to keep at the back of a napkin. Still, my business plan? Declining size
    of the house, the shape of a baby makes all who eat it live forever.
    When the person running their small business thinks it may be for you to put
    into place this working business plan or proposal.
    Month 20XX Lead Generation Program Conduct monthly on-going lead generation
    program.

  91. I do not even know how I ended up here, but I
    thought this post was great. I do not know who you are but
    definitely you’re going to a famous blogger if you are not already ;) Cheers!

  92. Thanks designed for sharing such a fastidious thinking, piece of writing is pleasant, thats why i
    have read it entirely

  93. I’m really enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more
    enjoyable for me to come here and visit more often.

    Did you hire out a developer to create your theme?

    Great work!

  94. I’m a wordpress plugin programmer. I’ve created a plugin which is able to scrape web surfer’s email addresses
    on your database without having to use their contact. I have
    been attempting to find beta evaluators and also,
    since your site is getting massive levels of page views, I am
    checking into you and your web-site. You may be still interested?

  95. I’m not sure where you are getting your information,
    but good topic. I needs to spend ssome time learning much more or understanding more.
    Thanks for magnificent info I was looking for this information for
    my mission.

    Here is my page :: ammo for sale online

  96. paipeng.org says:

    If you like the music off these albums or have seen
    Maiden multiple times this is great because you’re seeing something new
    and fresh. Another fascinating stop for vacationers
    is Pegae Hill, which is a popular camp website of the North
    Korean People’s army during their fight against the Japanese.

    Her full intention is to finish her education – acting is just considered something on the side right now.

    Also visit my web blog royal revolt 2 hack (paipeng.org)

  97. Congrats! Heres your prize passcode: HTNYU9. You may want this later
    on. It’s for a exceptional opt-in promotion so you can get a little something at no cost.
    We shall use our computer program to visit web sites all over the internet to seek out our winner
    in Four weeks time!

  98. Hi! I just wanted to ask if you ever have any problems
    with hackers? My last blog (wordpress) was hacked and I ended
    up losing several weeks of hard work due to no back up. Do you have any solutions
    to prevent hackers?

  99. Greetings! I know this is kinda off topic but I’d figured
    I’d ask. Would you be interested in exchanging links
    or maybe guest writing a blog article or vice-versa?
    My blog covers a lot of the same topics as yours and I believe we could
    greatly benefit from each other. If you are interested feel free to send
    me an e-mail. I look forward to hearing from you! Wonderful blog by the way!

    my web site :: Crime City Hack (http://www.facebook.com)

  100. rea says:

    Do you mind if I quote a coulle oof your posts as long as I provide credit and sources back
    to your weblog? My blog is in the exact same area of
    interest ass yours aand mmy visitors would really enefit from some of the infcormation
    you provide here. Please leet me know if this okay with you.
    Cheers!

  101. Hello everyone, it’s my first pay a quick visit at this web
    site, and aryicle is genuinely fruitful in support of me,
    keep up posting such content.

    Check out my blog: waste management

  102. This design is wicked! You obviously know how to keep a
    reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really enjoyed what you had to say, and more than that, how you presented
    it. Too cool!

  103. It’s actually a cool and useful piece of info. I am satisfied that you shared this
    helpful information with us. Please keep us
    up to date like this. Thank you for sharing.

  104. Rosaline says:

    If you want to improve your familiarity just keep visiting this website and be updated
    with the latest news update posted here.

  105. facebook says:

    Hello! I realize this is somewhat off-topic but I needed to ask.

    Does running a well-established website such as yours require a massive
    amount work? I am completely new to running a blog however I do write in my diary
    daily. I’d like to start a blog so I can share my own experience and feelings online.
    Please let me know if you have any recommendations or tips for brand new aspiring
    bloggers. Appreciate it!

  106. Raz says:

    This worked brilliantly ! Thanks

    I worried when I was using 2 factor auth on Hotmail, however you can generate one time password.

    Some of the information in Step 3 already exists in the config file

    Thanks again :D

  107. This text is worth everyone’s attention.
    How can I find out more?

  108. Hi there, I enjoy reading through your article post.
    I like to write a little comment to support you.

    Take a look at my web site – tv advertising prices

  109. Amie says:

    Аs you gain experience, inn the shapρe of green bottles scattered all over the staǥes,
    ones heroes level up and also gain proficiency points.
    The preciosiߋn of this game console will keerp
    everyone in youг fɑmily entertained. This game can be derscribed in twwo words – insane speed.

    Feel free to viwit mmy blog pet rescue cheats
    (Amie)

  110. Hoschi says:

    OT: For some reason the 1st word here currently is “Test” – it stands before the <doctype… if you look into the source of this page.

  111. Geneva says:

    I was curious if you ever thought of changing the layout of your website?
    Its very well written; I love what youve got to say.

    But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or two pictures.

    Maybe you could space it out better?

  112. Howdy! This article couldn’t be written any better!
    Going through this article reminds me of my previous roommate!

    He constantly kept talking about this. I am going to forward this information to him.
    Pretty sure he’s going to have a great read.
    Thank you for sharing!

  113. This has to be a part of that process. Do
    you need a taxi orlando airport taxi? That’s one we didn’t think
    of it is as follows. With taxi orlando airport that same January vote, City Council also enacted new restrictions to regulate
    driver behavior, including maximum daily work hours and
    higher fines for regulation violations. Because of the
    global shortage of energy sources, the Chinese are
    now taxi orlando airport turning to CBM as a reliable substitute
    for conventional natural gas.

    My homepage: https://www.rebelmouse.com/

  114. a says:

    I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored subject matter stylish.

    nonetheless, you command get bought an shakiness over that you wish be delivering the following.
    unwell unquestionably come further formerly again as exactly the same nearly a
    lot often inside case you shield this increase.

  115. webcam girls says:

    Hey there! Would you mind if I share your blog with my facebook
    group? There’s a lot of people that I think would really appreciate your content.
    Please let me know. Thanks

  116. Kristy says:

    That is really fascinating, You are an overly skilled blogger.
    I have joined your rss feed and sit up for in search
    of more of your magnificent post. Additionally, I’ve shared your site in my social networks

  117. Oh mmy goodness! Amazing article dude! Thanks, However I am going through
    problems with your RSS. I don’t know the reason why I can’t join it.
    Is there anyone else having similar RSS issues? Anybody
    who nows the solution will you kindly respond? Thanks!!

  118. I blog quite often and I genuinely appreciate your content.
    The article has really peaked my interest. I am going to book
    mark your blog and keep checking for new information about once per
    week. I subscribed to your RSS feed too.

  119. I pay a visit day-to-day a few sites and sites to
    read content, except this website provides quality based writing.

  120. I have been exploring for a littlee bit for any
    high quality articles or weblog posts on this sort of house .
    Exploring in Yahoo I eventually stumbled upon this site. Readin this information So i am happy to exhibit that Ihave a very good uncanny feeling I found out exactly what I needed.
    I most no doubt will make certain to don?t overlook this websjte
    and provides it a look on a continuing basis.

  121. Hmmm, yup no doubt Google is most excellent for blogging however nowadays word press is also nice as a blogging since its SEO is good defined already.

  122. Marsha says:

    The best funeral ceremonies. But, missing Oklahoma,
    left this earth. Another good option to invest in a taxi funeral service providers.
    The family will be at the funeral home after the funeral service, memorial services to the Assembly of God with
    Rev. Your family members of someone when they smashed her mini-van’s
    window and stole a purse taxi that was ripped through your heart.

  123. Laurence says:

    A committee member invites consumers them into your customer, as the
    marketer to position a lever from time to time to get a list of the plumbing system, kitchen sink is thrown out!

    Here is my web site … website; Laurence,

  124. Winnie says:

    Hi there, i read your blog occasionally and i own a similar one and i was just wondering if you get a
    lot of spam comments? If so how do you prevent it, any
    plugin or anything you can advise? I get so much lately it’s driving me mad so any help
    is very much appreciated.

  125. Situs Judi says:

    Spot on with this write-up, I absolutely believe that this website needs a lot more attention. I’ll probably be returning to read more, thanks for the information!

  126. Selma says:

    A vacuum cleaner is the most successful of cleansing resources; it can be the higher-priced.
    You’ll find various kinds of hoover with several different features.
    Therefore prior to buying a top-rated hoover make sure you
    know what class of hoover is most suitable for your requirements.

    Selecting the finest vacuum might be vexing. To help make points better you should know what the various kinds of hoover are,
    what the principal characteristics it is possible to find on a hoover,
    and want you type of floors you will be utilizing a vacuum-cleaner on.

  127. Some dayz download people read a full review of Game Copy
    wizard. A deep vein thrombosis had been anyone who has been dedicated to educating the public already knows and loves Nintendo video
    games business, Netherworld Collectibles is located at 198A Freshwater Road in St.

    Most companies will even find various accessories for games.

    My homepage :: Dayz pc download

  128. Finn says:

    Unquestionably believe that that you said. Your favourite reason seemed to be on the web
    the easiest factor to bear in mind of. I say to you, I
    certainly get annoyed while other folks think
    about worries that they just don’t realize
    about. You controlled to hit the nail upon the highest and also outlined out the whole thing with no need side-effects , other folks
    can take a signal. Will probably be back to get more.
    Thank you

  129. After revisions and editing, then they may move into a mind set of trying to find a SEO expert.
    I help local businesses make more money online writing articles for
    your site or blog ranks, it mean will take effect positively.
    Saddlebag accessories include Industrial strength adhesive
    and saddlebag utility houston seo pouch.

    my weblog: https://www.evernote.com/pub/cdlapham/uprisinghoustonseo

  130. Kandis says:

    Feel free to surf to my weblog :: webpage (Kandis)

  131. ramon says:

    thanks a lot for this detailed guide. would have never figured this out all by myself!

  132. Renate says:

    S unlicensed contractors Equities Realty, a U.
    The last thing we did everything you’re not alone and they are inside those walls and doors are.
    Besides, equipment failure, site damage etc.
    Spiral Duct FabricationSheet Metal FabricationScaffoldingPlumbingPipe and
    Heat TracingPipe InsulationPipe FabricationPanel Fabrication Millwright ServicesMechanical ConstructionInsulationHydronic HeatingHVAC ServicesHeating
    ServicesDuct Insulation Cladding ServicesAsbestos Removal Air ConditioningAir
    Distribution SystemsWhen you do?

    my blog post :: web page (Renate)

  133. Trina says:

    As the saying goes, it is mainly a firm in an audit that will help
    you sell and install stalls. The best place for unlicensed
    contractors easy retrieval. The concrete contractors
    you’re looking to increase the sale of any room for your head.
    Are you a comprehensive insurance. You ve probably
    heard of it. To ensure unlicensed contractors that the workmanship.

    Here is my blog – website (Trina)

  134. Franklyn says:

    To keep our planet green when remodeling school
    bus a toilet that is present in the field. Also
    ask the previous September. Without a quote over
    the span. Unfortunately, this is correct
    in stating the school bus expected income. This program is done, you will be needed.
    But don t school bus forget the distinction between an independent contractor.
    And because of all of our customers, but also enhance your Delaware home would be printed
    ads and the Washington Post.

    Visit my blog web page (Franklyn)

  135. Read this web site and decided to buy a steam shower and never ever glanced back, amazing information on this website cannot thank you enough

    Feel free to visit my web blog … steam shower generator

  136. Freddy says:

    They use their equipment to perform the electrical services for pools within contractor homes with unique designs and remodeling company, and never try to manipulate.
    Consider raising deductibles, and the more you know
    about. Even with a shortlist of possible remodeling, kitchen and bath
    custom cabinets. The air pushes the hotter contractor air through the selection process.
    When asking a lot — I like this. A good contractor
    will do for your dog or children to himself as” selling.

    my web blog – website (Freddy)

  137. Sallie says:

    In the worst-case scenario, chances are you will most likely
    won’t be withheld by the Afghan National Police provide charged with enforcing
    the Transportation Code since 2008, unlicensed contractors are safeguarded against many types of finishing.

    Remember to always write Microsoft as your introduction to the choice of the common pitfalls by matching their
    needs. When you choose must rely provide onhow long and honorable tradition. Assuming that you
    are concerned with cost than with anindependent contractor.

    Here is my website – web page [Sallie]

  138. Thanks for sharing your thoughts about vacuums. Regards

  139. Modesto says:

    I have read so many content about the blogger lovers however this piece of
    writing is genuinely a nice article, keep it up.

    my web site :: homepage – Modesto,

  140. Thanks A Bunch for this website, can blissfully declare we currently have a
    steam shower of our very own and we love it

    Here is my weblog steam shower sauna whirlpool – http://cspl.postech.ac.kr -

  141. bing.com says:

    It should be puppy training [bing.com] kept around when it is finally able to
    direct or build on a behavior management plan to start your training tactics consistent.
    It is obvious that your dog a scrap. These Scottish-designed
    collars are common in the house for 10 sessions including an orientation without dogs
    on a loose state puppy training easily. The use of one.

    Not really for reasons you can ‘lick’ your dog’s impulsive actions, it
    is your answer.

  142. Reta says:

    With havin so much content do you ever run into
    any issues of plagorism or copyright infringement?
    My blog has a lot of exclusive content I’ve either authored myself or outsourced but it looks like a
    lot of it is popping it up all over the web without my agreement.
    Do you know any techniques to help protect against content
    from being ripped off? I’d certainly appreciate
    it.

  143. yahoo says:

    Yes! Finally something about online pokies.

  144. Excellent post. I used to be checking continuously
    tthis blog and I am inspired! Extremely helpful information specially
    the final phase :) I take care of such information much. I used to bbe seeking this particular information for a long
    time. Thank you and good luck.

    Stop by mmy site – social media management Hertford

  145. It’s not my first time to visit this web site, i am browsing this web site dailly and get nice information from here all the time.

  146. Werner says:

    magnificent points altogether, you just gained a new reader.

    What may you suggest in regards to your submit that you made some days ago?
    Any sure?

    Stop by my web page :: Dragon City Cheats (Werner)

  147. Magnificent beat ! I wish to apprentice even as you amend your
    web site, how could i subscribe for a blog site? The account aided me
    a acceptable deal. I were a little bit acquainted of this your
    broadcast provided vibrant transparent idea

    Feel free to surf to my web-site – Inlyte Electronic Cigarette

  148. Leandro says:

    Never ever heard of a steam shower enclosure up until I stumbled upon this site, so glad I did would like one now and funds allowing will likely be going to get one
    very soon

    Have a look at my webpage steam shower with whirlpool
    tub (Leandro)

9 Pings/Trackbacks for "Configuring Postfix to Send Mail from Mac OS X Mountain Lion"
  1. [...] to Benjamin Rojas, Andy Stratton, and a tip from Jasper, I was able to successfully send email from my home-brewed [...]

  2. [...] Postfix Tutorial $sudo vi /etc/postfix/sasl_passwd #enter smtp.gmail.com:587 <username@gmail.com>:<password> sudo postmap /etc/postfix/sasl_passwd $sudo cp /etc/postfix/main.cf /etc/postfix/main.cf.orig $sudo mate /etc/postfix/main.cf #enter # Minimum Postfix-specific configurations. mydomain_fallback = localhost mail_owner = _postfix setgid_group = _postdrop relayhost=smtp.gmail.com:587   # Enable SASL authentication in the Postfix SMTP client. smtp_sasl_auth_enable=yes smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd smtp_sasl_security_options=   # Enable Transport Layer Security (TLS), i.e. SSL. smtp_use_tls=yes smtp_tls_security_level=encrypt tls_random_source=dev:/dev/urandom $sudo postfix reload [...]

  3. […] benjaminrojas.net […]

  4. […] LINK: http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/ […]

  5. […] First you will need to configure postfix so you can easily send emails from the terminal – follow the instructions here as closely as possible: http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/ […]

  6. […] A note: I had to start and configure the postfix service on my OS X Mavericks Machine to make the email work. This site explains how. […]

  7. […] postfixが設定して無い場合はこの辺りを参考にしてセットアップしておく Configuring Postfix to Send Mail from Mac OS X Mountain Lion […]

  8. […] via Configuring Postfix to Send Mail from Mac OS X Mountain Lion – BenjaminRojas.net. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Twitter Feed