Hello list,

I want to setup a backup mx with the new version of smtpd; using the
new grammar structure. However, I think I am doing this wrong because
it is not working. Below is the relevant configuration for the primary
mx:

# Actions
#
action "local" mda "/usr/local/bin/rspamc -d %{dest} --mime --exec
'/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest}'"
alias <aliases>
action "domain" mda "/usr/local/bin/rspamc -d %{dest} --mime --exec
'/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest}'"
virtual <virtuals>
action "dkim" relay host smtp://127.0.0.1:10027
action "relay" relay

# Incoming
#
match from local for local action "local"
match from any for domain <domains> action "domain"

# Outgoing
#
match tag DKIM for any action "relay"
match from local for any action "dkim"
match auth from any for any action "dkim"


Below is the relevant config for the backup mx:

# Actions
#
action "local" mbox alias <aliases>
action "domain" relay backup

# Matches
#
match for local action "local"
match from any for domain <domains> action "domain"


To test, I stop smtpd on the primary mx and send a test email to
m...@example.org from m...@gmail.com. I notice that the message gets
queued on the backup mx so then I restart smtpd on the primary mx.
However, the message fails to go to the primary mx. In the backup mx
server log, I notice that the rcpt-to field has been set to the
m...@gmail.com address instead of the m...@example.org so this would
explain why the relay to the primary ultimately fails. What am I doing
wrong?

Thanks,
Matt

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to