I'm attempting to set up sendmail to use the mailgun smtp relay for some email invoices our company sends out. However, these are originating from a handful of different domains and when I try to set up authinfo like this:
AuthInfo:smtp.mailgun.org "U:email@example.com" "P:pAsSWoRd" "M:PLAIN" AuthInfo:smtp.mailgun.org "U:firstname.lastname@example.org" "P:pAsSWoRd" "M:PLAIN"
and try to run
/etc/mail/make, it fails with the error:
makemap: authinfo.db: line 3: key authinfo:smtp.mailgun.org: duplicate key
Is there a way to set up authinfo so that I send from both domains without it showing up as email@example.com, or do I need to configure something differently to allow me to send like this?