HOW TO: Relay/Send email from websites, Server Monitor in OS 10.5 Server

If you don't want to run your own mail server or configure DNS on your Xserve, but you still want your website or applications like Server Monitor to send email notifications; this is what you need to do:
Scenario: Mac OS 10.5.2 Leopard - Advanced Configuration - Setup is for strictly sending emails through SMTP, routed through your ISP or another provider. This is not for receiving emails.
-Open up Server Admin
If you have yet to add in a server to admin, you need to do so. Resource PDFs on setting up OS X Server are available at Apple http://www.apple.com/server/macosx/resources/ and there are video tutorials at http://movielibrary.lynda.com/html/modPage.asp?ID=373
-Click on your server, then choose the Settings button
-Then choose Services from the Tabs/Buttons below
-Select the Mail checkbox and then hit Save
-Now choose the newly added Mail service in the left pane, then click the Settings button up top
-Start with the Advanced tab. Under Security, un-check everything and don't use SSL unless you want to. You don't need to mess with the other sub-tabs here.
-Next choose the Logging Tab. Under SMTP log level, choose debug so you will be able to see what goes on in the log.
-Mailing List, Quotas and Filters tabs can go untouched. You can mess with them later if you want.
-Click the Relay tab. It is a good idea to only accept relays from your local machine. If you uncheck this, I believe it leaves you with an open relay that anybody can access.
-Now for the General Tab. Under Domain Name put anything you want. Any made up name and extension is fine.
Under Host Name, again put anything you want.
Un-check Enable POP, Un-check Enable IMAP - Basically un-check everything
Check or leave checked Enable SMTP
Now check Relay outgoing mail through host:
Then enter your hosts SMTP server. ex. smtpout.secureserver.net
Now check Authenticate to relay with user name: and enter your username and password
-Now hit the Save button
-Now we need to take a look at the main.cf file and add a few things
-If you aren't showing all files in Finder already, open up Terminal.app
Now type in: defaults write com.apple.Finder AppleShowAllFiles True
Hit enter
Now type in: killall Finder
Now Finder should reset and all files should be visible - To hide all files, do the same thing but type False
-Now open Macintosh HD and navigate to /private/etc/postfix/main.cf (Note: you won't be able to open and edit this in TextEdit. I recommend a program like TextWrangler http://www.barebones.com/products/textwrangler/download.shtml )
-Once you have main.cf open, all your settings should be together at the bottom of the doc. Scroll down. You will need to add in a few lines and verify all the settings are exactly as below (except of course your own names and SMTP server):
readme_directory = /usr/share/doc/postfix
mydomain_fallback = anything.anyting
messagesizelimit = 0
myhostname = anything.anything
mailbox_transport = cyrus
mydomain = anything.anything
mailboxsizelimit = 0
enableserveroptions = yes
inet_interfaces = all
relayhost = smtpout.secureserver.net
smtpsasl_passwordmaps = hash:/etc/postfix/sasl/passwd
smtpsasl_authenable = yes
smtpdsasl_authenable = no
smtpsasl_securityoptions =
smtpduse_pwserver = no
smtpdrecipientrestrictions = permitmynetworks,reject_unauthdestination,permit
smtpdpw_server_securityoptions = none
-Now save the main.cf document
-Now go back to Macintosh HD and navigate to /private/etc/postfix/sasl/passwd
Open passwd with TextWrangler or you editing app, and verify that your SMTP server, username and password are correct. It should look something like this:
smtpout.secureserver.net [email protected]:password
-This should be what you entered in Server Admin when you first started. If all is well, quit your editing app.
-Now, while you are still at /private/etc/postfix/sasl/passwd you need to edit permissions for passwd
You can chmod in Terminal.app or secondary click on passwd and "Get Info"
Click the lock and enter your password to unlock the settings
Next click the + button and add yourself and Admin
-Now you can close out of everything and go back to Server Admin
-Hit the Reload (twisty arrow) button at the bottom and once everything is reloaded, hit Start Mail
-Now type localhost in your browser to see if your website can send email. You can also open up other apps such as Server Monitor and do something to change the status to have it send an email.
-You can click on Mail in the Server Admin and then view the SMTP log. As long as emails are being sent and then removed from the queue, you are in good shape. If you are getting an SASL error or mechanism error, open up main.cf and verify your settings and/or check permissions on passwd file

Don't you need the Mail service running to have apps like Server Monitor send email notifications? - Also for hosted sites that use the sendmail function you need a service running to get the emails sent.
Really you are not hosting a Mail server. It is open, but there is no incoming and if you only accept SMTP relays from the local machine, there should be no issues.

Similar Messages

  • How can I send email from my yahoo alias account in iPhone5 mail?

    How can I send email from my yahoo alias account in iPhone5 mail?
    I have 2 email accounts: [email protected] is an alias of [email protected]
    In my old iPhone3 I had these accounts set up so that I could send and receive email from both accounts. I did this using the following settings:
    ‘Other’ POP account info:
    Name: xyz
    Address: [email protected]
    Description: alias
    Incoming mail server:
    Host name: pop.mail.yahoo.com
    User name: [email protected]
    Password: password for yahoo account
    Server port: 995
    Outgoing mail server:
    SMTP: smtp.o2.co.uk (o2 is the name of my phone network)
    Server port: 25
    ‘Yahoo!’ account info:
    Name: xyz
    Address: [email protected]
    Password: password for yahoo account
    Description: Yahoo!
    Outgoing mail server:
    Primary server: Yahoo! SMTP server
    Server port: 465
    I’ve tried using the same settings in my new iPhone5, but it doesn’t work. I can receive mail to both accounts, and can send from the Yahoo account, but I cannot send mail from the alias account. When I try, it displays the message: “Cannot send mail. A copy has been placed in your Outbox. The recipient ‘[email protected]’ was rejected by the server”.
    I’ve tried to configure the POP alias account using combinations of ‘pop.mail.yahoo.com’, ‘pop.mail.yahoo.co.uk’, ‘apple.pop.mail.yahoo.co.uk’ and ‘apple.pop.mail.yahoo.com’, for the incoming host, and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server. None of these have worked.
    I’ve also tried setting it up using IMAP instead of POP without success. I tried configuring it using combinations of ‘imap.mail.yahoo.com’, ‘apple.imap.mail.yahoo.com’, ‘imap.mail.yahoo.co.uk’ and ‘apple.imap.mail.yahoo.co.uk’ for the incoming mail server and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server.
    Yahoo say that if I can't send Yahoo! Mail from my mail program, I may be accessing the Internet through an ISP that is blocking the SMTP port, and that if this is the case, I should try setting the SMTP port number to 587 when sending email via Yahoo!'s SMTP server. I don't think that this is the problem, but I tried it just to make sure - without success.
    I’ve also heard that the problem might have something to do with the SPF settings of my alias domain provider. I’m not too sure exactly what SPF settings are, or how to change them, but from what I can gather it seems unlikely that this is the problem given that I was able to send mail from my alias account on my old iPhone3.
    Any help much appreciated: how can I get my alias account to send emails in iPhone5 mail?
    Many thanks,
    Patrick

    A new development: I've tried sending emails from the alias several times over the past 24 hours, but in general I've deleted them if they haven't sent within about half an hour.
    However, one of the messages I left sitting in the outbox did send successfully in the end, but this took about an hour.
    So: perhaps my problem is not in fact that I am completely unable to send mail from my alias, but that I can only do so intermittently and extremely slowly, and by ignoring the "cannot send" message.
    Any help appreciated.

  • How can I send email from my HPEPrint email address

    How can I send email from my HPEPrint email address, to other addresses? Is the HP photosmart 5010 smtp compatible?

    Hello
    The eprint service is only used for incoming emails to the eprint center which then go to your printer, you cannot send out emails from that address.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • How do I send email from a gmail account

    How do I send email from a gmail account on my Macbook air?

    you have to setup your mail account in your macbook air

  • How do I forward email from website to entourage

    I bought a domain through google and had it forwarded to iweb. How do i get my emails (e.g. [email protected]) to show up on Entourage? And, how do I send emails from entourage under the name BABADOG. I've spent hrs. trying to find the answer and am very frustrated as I can't figure it out. Any help would be appreciated.

    Firstly you need to go to your Google account and set up your domain name e-mail account. You would probably need to select and password and e-mail name such as [email protected] and then this will be set.
    Then go to Entourage and set up the account there, so this means that you need the pop and smpt settings for the mail account, but these should be available from Google.

  • How can I send emails from my Verizon email from my itouch?

    I am connected to wifi at home and at Starbucks when I try to send email from my Verizon email address on my itouch.  I can't, how can I fix this so I am able to send email via itouch from my verizon email address? 

    See:
    iOS: Unable to send or receive email
    I would Google for:
    setup verizon email on phone
    for the settings to use.

  • How can I send email from my domain from my iPhone using Gmail

    I want to send email from my iPhone using Gmail/Exchange but I want my emails to come from my own domain.
    I've tried a few different methods but my email ends up crashing after a couple days.
    Is there a simplified process to solve this annoyance?
    Thanks in advance

    lukefromsudbury wrote:
    I have no idea what your're talking about. 
    Neither do I, nor any of the other posters in this thread.
    Watch the Video Here:
    http://www.theanywhereoffice.com/digital-lifestyle/how-to-send-mail-from-your-ow n-domain-using-gmail-and-iphone.htm
    Shows you exactly how to do what you want.

  • How can i send email from a custom domain connected to gmail on iphone?

    Hi there,
    I am trying to add a gmail account to my iphone 5S which i have added a custom godaddy email to through pop3 but when i add the gmail account i cant send from the custom domain email.
    lets say the account is [email protected] with a [email protected] email attached to it, is there a way of sending emails from my iphone from this address?
    I have tried to find other guides but cannot seem to.
    thanks in advance

    Look in the JavaMail forum on how to create Mime format emails. This allows you to use HTML instead of plain text.
    Anthony

  • How do I send Emails from Iphone using mobile me aliases?

    I am trying to send Emails from my iPhone whilst using the mobile me Email aliases in the 'From:' field. I can't seem to find instructions on how to do this.

    Yep. You can set up MobileMe as a regular IMAP account and specify the "from" address that way; however, your emails will show as "From [email protected] on behalf of Your Name" in the recipient's inbox. I think it kind of defeats the purpose of sending from an alias if it's just going to display your user ID.

  • How can i send emails from forms

    I need to be able to send emails from forms 6.(assuming the pc is running Outlook) What is the best way of doing this? Would OLE or DDE control of Outlook be the easiest method?
    If anyone has done this please let me know.

    See:
    iOS: Unable to send or receive email
    I would Google for:
    setup verizon email on phone
    for the settings to use.

  • HOW DO I SEND EMAILS FROM MY PHONE.......I RECEIVE EMAILS JUST FINE

    I can receive emails.....how do i send emails?

    1- Go To Mail
    2- On the Buttom right corner, you see an icon ( like a pen & paper), hit that
    3- Then you will be able to send an email just fill up the TO: Subject: and type the email you want to send
    Enjoy Emailing

  • How can I send email from iPad using someone else's server

    I use the Netspace server but I'm visitng a friend and using her optusnet server for the Internet, however I am unable to send email, even though I can receive it

    Critters222-
    I assume Netspace is your Internet provider.  They may have their mail server set up to only work when you are accessing the server locally from their domain.  I suggest you contact Netspace and ask them what you need to do to send E-Mail to them from other domains.
    Have you been able to send E-Mail from other places?  If so, there might be a firewall problem in Optusnet.  In that case, they may be best able to advise you. 
    Fred
    Message was edited by: Fred*M.

  • How can i send email from my ipad and have it go to my home computer

    When recently travelling I tried to send emails home but often they came back into my ipad inbox but never went to the home computer. How can I get them to load at home?

    If your iPad settings for email do not remove the mail from the server your computer will retrieve the mail when you send it to yourself.
    On your iPad
    Settings --> Account --> Advanced --> Delete Mail from Server --> Never
    I always have my Mail set this way on my iPad. This way I let my computer retrieve and archive email and delete items from the server.

  • How do I send email from Flex?

    I would like to send an email from Flex.  Searching through the forum I found the same question unanswered from a long time at and found answers on how to setup Flex as the POP3 get email client.  But my needs are much simpler.  I just want to send an email.
    Anyone ever do this?

    The common approach is to do this sort of work on the server; and just have Flex ping a remote service.  It is very easy to send e-mail in most server side software..
    In theory you could use socket classes to hook up to an SMTP server to send e-mail directly from Flex, but since the other, common, ways are so easy I can't imagine it is worth the time.

  • How do I send emails from various accounts in gmail from my iPad?

    I imap 3 accounts through my gmail account. Gmail, in it's browser form, allows me to choose from which account I send an email from  in a drop-down menu. I don't see how to do this on the iPad mail app or through safari for iPad.
    If not possible, what are ur solutions for efficiently responding to emails from various accounts on the iPad (network solutions, gmail, and university).
    Thanks!

    If you log into Gmail from a computer, you can specify in the settings to always reply from the account the email came from. You should only have to do it once for each account.
    Settings>Accounts and Import.

Maybe you are looking for