Not signed in (Sign In)
    •  
      CommentAuthorjmp
    • CommentTimeFeb 4th 2010
     permalink
    I've looked over the guides available on Slicehost and didn't see exactly what I'm looking for. I don't need much hand-holding, just some pointers to where I should look. Here's my situation:

    I will be hosting several domains from my slice. I want applications in each domain (such as WordPress and some forum software) to be able to send email from that domain. I don't care at all about receiving email on the domains-- Google Apps is handling that.

    I've set up Postfix using the guides here for a single domain, and it works fine. Now that I'm moving to multiple domains, I'm not sure what I need to do:

    1. What needs to be done for reverse DNS so email sent from each domain isn't rejected?
    2. What do I need to do for Postfix so the domains are handled.
    3. What is the mechanism to ensure that email sent from applications in each domain have the proper domain name on them?
    4. Are there any issues I need to be aware of?

    Thanks in advance.
    •  
      CommentAuthorkwilson
    • CommentTimeFeb 4th 2010
     permalink
    1. You can't have reverse DNS for each domain your server sends mail for, but the good news is that you don't need to. While the sending mail server's hostname and DNS name are often checked, they don't have to have anything to do with the address in the From: line of the email (think about it, shared hosting would never work otherwise).

    2. Nothing. If it's already working, it will continue working. Your MTA doesn't care which application on the server initiated the email, or what that app is using as a From: address. It doesn't know or care about your web sites.

    3. Depends on the app. Third party CMSs will have a setting somewhere; custom apps may have something hard-coded or may just use the domain of the web site they're running on.

    4. Nope, but you might want to read this article on email deliverability if you're new to this.
    •  
      CommentAuthorjustink101
    • CommentTimeFeb 5th 2010 edited
     permalink

    @jmp,

    Do you have a guide for setting up postfix to send e-mail? I am currently using MSMTP which works, but doesn’t support multiple domains. With MSMTP I had to hardcode which domain, and which google app user I want to send ALL e-mails from.

    All e-mails to all domains are sent from a single google apps e-mail account in my current setup. I want to get away from that.

    • CommentAuthorJered
    • CommentTimeFeb 7th 2010
     permalink

    As kwilson pointed out, the "from" field in outgoing email shouldn't trigger any spam flags, and doesn't have to match the host name of the outgoing mail server being used. You should be able to set that "from" address within the application sending the email.

    Within postfix, just make sure the address used for the "myhostname" setting has reverse DNS set up. Only rarely would any users see the mail server name, since it's nestled among all those headers that mail servers care about but users don't. So you should be okay just having "mail.whatever.com" as the mail server host name for sending mail from each of the domains you're using.

    Now, it is another matter if you have more than one program that sets a username for "from" on outgoing email but doesn't set the "from" domain. Postfix will use the "myorigin" setting to tack a domain onto supplied usernames for outgoing mail. If you only have one program that needs the help, no problem - just set "myorigin" to the domain you want to use for the "from" address and you're set, since the other programs won't need it.

    And justink101, we do have some guides for setting up email in the email section of our articles site. The basic email tutorials there are aimed at Ubuntu but shouldn't be hard to adapt to another distribution for now. That should at least get you started with a postfix installation.

    • CommentAuthorsdotsen
    • CommentTimeFeb 9th 2010
     permalink
    I've used this to set up my VPS and it works great!

    http://workaround.org/ispmail/lenny