[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] POP before relay/majordomo problem -- SOLUTION
- Subject: [cobalt-users] POP before relay/majordomo problem -- SOLUTION
- From: "Simon Liddicott" <simon@xxxxxxxxxxxx>
- Date: Wed May 7 09:20:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
reposted to start a new thread :-D
It is all in /etc/mail/sendmail.cf
CPREDIRECT # Around Line 143
# Access list database (for spam stomping)
Kaccess hash -o /etc/mail/access
# Pop-before-smtp secondary access hash #Insert this line
Kpopauth hash -a<MATCH> /etc/mail/popip.db #And this line
# Virtual user table (maps incoming users)
Kvirtuser hash -o /etc/mail/virtusertable
=================================================
# wait for alias file rebuild (default units: minutes)
O AliasWait=10
#Around line 171
# location of alias file
O AliasFile=/etc/mail/aliases
O AliasFile=/etc/mail/aliases.majordomo #Insert this line
# minimum number of free blocks on filesystem
O MinFreeBlocks=100
=================================================
######################################################################
### check_rcpt -- check SMTP `RCPT TO:' command argument
######################################################################
SLocal_check_rcpt
#Around line 1072
# Put the address into cannonical form (even if it doesn't resolve to an
MX). #Add this line
R$* $: $>Parse0 03 $1
#And this line remember to use tab not spaces
R$* < $* > $* $: $1 < $2 . > $3
#And this line remember to use tab not spaces
R$* < $* . . > $* $1 < $2 . > $3
#And this line remember to use tab not spaces
# Test against pop-before-relay hash
#And this line
R$* $: < $&{client_addr} >
#And this line remember to use tab not spaces
R< $* > $(popauth $1 $)
#And this line remember to use tab not spaces
R$* < MATCH > $#OK
#And this line remember to use tab not spaces
Scheck_rcpt
R$* $: $1 $| $>"Local_check_rcpt" $1
R$* $| $#$* $#$2
R$* $| $* $@ $>"Basic_check_rcpt" $1
===================================================
aside from the majordomo line you may wish to remove the lines we added from
/etc/mail/sendmail.cf.nopopauth
simon