multiple domains - postfix/dovecot/mysql

Discussion in 'Server Operation' started by blinky, Oct 27, 2012.

  1. blinky

    blinky Member

    Hidee ho... again...

    Some of you are likely going to think I'm thick as a plank I've been here so often in the past couple months but I keep coming back to the well because it's got water in it.

    I have been able to configure postfix/dovecot/mysql with virtual users/domains (and postfixadmin) on a Ubuntu 12.04 system. I was having some problems connecting to the SMTP server off-site but determined the most likely cause was that the *other* ISP was blocking port 25 so I thought I'd use port 587 instead. As a result, I added the following to the postfix file:

    submission inet n - - - - smtpd
      -o smtpd_tls_security_level=encrypt
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_sasl_type=dovecot
      -o smtpd_sasl_path=private/auth
      -o smtpd_sasl_security_options=noanonymous
      -o smtpd_sasl_local_domain=$myhostname
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    The above information I found via Google.

    Now, for my primary domain (which I'll call everything works fine... mail gets processed by accessing the mysql virtual database without problem. But for the secondary domain (which I'll call the mail gets bounced rejecting it as anonymous.

    Interestingly, if I connect to the same machine from an ISP that does not block port 25 and I configure the client to use port 25 both domains get processed fine.

    What I need to figure out is how to configure the server to handle ALL domains and users on port 587.

    I'm sure there's a simple setting I've overlooked. Sheesh, talk about a pile of configuration files to get this puppy up and running!

    I thank you all in adance for your time and patience.

Share This Page