Parcourir la source

Use `${user}@${nexthop}` instead of recipient

This allows the `recipient_delimiter` setting in etc_postfix_main.cf.j2
to function as intended.

Fixes: #121
Bryan J Swift il y a 11 ans
Parent
révision
dc3dac0fc0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      roles/mailserver/files/etc_postfix_master.cf

+ 2
- 2
roles/mailserver/files/etc_postfix_master.cf Voir le fichier

@@ -126,6 +126,6 @@ mailman   unix  -       n       n       -       -       pipe
126 126
   ${nexthop} ${user}
127 127
 # spam protection
128 128
 dspam     unix  -       n       n       -       10      pipe
129
-  flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent,spam --user $recipient -i -f $sender -- $recipient
129
+  flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent,spam --user ${user}@${nexthop} -i -f $sender -- $recipient
130 130
 dovecot   unix  -       n       n       -       -       pipe
131
-  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}
131
+  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${user}@${nexthop}

Chargement…
Annuler
Enregistrer