Article ID: 4272, created on Mar 24, 2008, last review on May 4, 2014

  • Applies to:
  • Sphera

Symptoms

Shared MX sendmail will allow to relay to any destination with a plus ("+") sign in the user name.

Resolution

The bug is in system sendmail configuration created by Server Director 4.1+.

 To deny relaing for users with "+" sing follow next steps:

1. Login to the server as root.(shared mx is a system's sendmail)
2. Backup /etc/mail/sendmail.mc and /etc/mail/sendmail.cf
3. Edit sendmail.mc file and add following line(see below):
--sendmail.mc-------------------------------------------------
LOCAL_RULESETS
# added by Sphera
SLocal_check_rcpt
R< $* > $: $1
R$* + $* $@ $: <-------------THIS LINE TO BE ADDED, NOTE THE TAB
R$+ @ $* $: $(virtuser @ $2 $@ $1 $: $1 @ $2 $)
R$* + $* $@ $# RELAY
LOCAL_NET_CONFIG
# added by Sphera
R$+ < @ $* . > $: $(virtuser @ $2 $@ $1 $: $1 < @ $2 . > $)
--sendmail.mc-------------------------------------------------
 
4. Compile sendmail.mc: "m4 < sendmail.mc > sendmail.cf"
 
5. Restart sendmail: "service sendmail restart".

5f478287f7e74fe9b07217d8131cd741 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF