Re: sendmail auth - restrict user to local-host-names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexander Dalloz wrote:

s it possible to restrict a user to send mails with smtp-auth only to local-host-names ?
"dummy@xxxxxxxxxxx" should only be able to send mails to "shrek.local"
fc3, sendmail-8.13.1-2


http://www.sendmail.org/~ca/email/restrict.html


thanks, but my sendmail knowledge is restricted.

there exist no feature in eg. /usr/share/sendmail-cf/feature/
FEATURE(`intern.only')  :-((


some questions.//

where do i have to add this?

--------

LOCAL_CONFIG
F{Internal}/etc/mail/intern.only
----/----



sorry, but i doubt that i can add this ruleset in my sendmail.cf without problems.
i have absolutely no experience with rulesets and do not know how to modify the ruleset for 8.13.1-2
-------
/Last Update 2002-07-24

/

LOCAL_RULESETS
SLocal_check_rcpt
# get sender address and canonify it
R$*				$: $1 $| $>3 $&f
R$* $| <>			$@ OK		<> is always ok
R$* $| $={Internal} <@$=w.>	$: $1		luser@xxxxxxxxxx?
R$* $| $={Internal}		$: $1		luser?
R$* $| $*			$@ OK		someone else
R$*				$: $>3 $1	check recipient
R$+<@$=w.>			$@ OK		local? ok
R$+<@$+>			$#error $@ 5.1.8 $: "551 sorry luser your boss does not like you"
----/----


----my sendmail.cf---- ######################################################################

SLocal_check_rcpt
Scheck_rcpt
R$*                     $: $1 $| $>"Local_check_rcpt" $1
R$* $| $#$*             $#$2
R$* $| $*               $@ $>"Basic_check_rcpt" $1

SBasic_check_rcpt
# empty address?
R<>                     $#error $@ nouser $: "553 User address required"
R$@                     $#error $@ nouser $: "553 User address required"
# check for deferred delivery mode
R$*                     $: < $&{deliveryMode} > $1
R< d > $*               $@ deferred
R< $* > $*              $: $2


###################################################################### R$* $: $1 $| @ $>"Rcpt_ok" $1 R$* $| @ $#TEMP $+ $: $1 $| T $2 R$* $| @ $#$* $#$2 R$* $| @ RELAY $@ RELAY R$* $| @ $* $: O $| $>"Relay_ok" $1 R$* $| T $+ $: T $2 $| $>"Relay_ok" $1 R$* $| $#TEMP $+ $#error $2 R$* $| $#$* $#$2 R$* $| RELAY $@ RELAY R T $+ $| $* $#error $1 # anything else is bogus R$* $#error $@ 5.7.1 $: "550 Relaying denied. Proper authentication required." ----/my sendmail.cf----




-- shrek-m


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux