Using master.cf to modify main.cf options
- We use Mandrill (a MailChimp offering) for the Admissions Office bulk emailing to perspective students. We have now set up a second Mandrill account that has to authenticate with a different username/password (or key as Mandrill calls it). The key is mapped to this hash below.smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwdFor the second account, I have created a second password file, sasl_passwd_campus and I’ve configured master.cf as follows:smtp inet n - n - - smtpd2025 inet n - n - - smtpd-o smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd_campusMy expectation is that when I connect to Postfix on port 2025, the one map will override the other, but it doesn’t appear to be doing do. All the messages being delivered to Mandrill are coming in on the Admissions account and not the new second account.What am I doing wrong here?Thanks,Rob Tanner
- On Mon, Mar 24, 2014 at 10:48:43PM +0000, Rob Tanner wrote:
> For the second account, I have created a second password file,This makes no sense, the setting is Postfix SMTP *client* setting,
> sasl_passwd_campus and I've configured master.cf as follows:
> smtp inet n - n - - smtpd
> 2025 inet n - n - - smtpd
> -o smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd_campus
but you're applying to a Postfix SMTP *server* instance.
> My expectation is that when I connect to Postfix on port 2025,The SMTP server makes no use of this parameter. What real problem
> the one map will override the other, but it doesn't appear to be
> doing it.
are you trying to solve? In other words, what do you want to do
differently with email that you were planning to receive on port
> All the messages being delivered to Mandrill are comingMostly not yet asking the right question. Ask for help with your
> in on the Admissions account and not the new second account.
> What am I doing wrong here?
real problem (describe it in detail) not the tentative solution
that is not working, and may not be the right approach.