----- Original Message ----- 
From: "Alessandro Portela Fausto" <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 3:34 PM


> Pessoal, alguem sabe me dizer se tem como criar uma regra no sendmail para
> que qualquer mensagem que seja enviada para uma conta qualquer que nao
> existe no dom�nio seja recebida por uma conta espec�fica ?? Obrigado desde
> j� !


Caro amigo, acrescente estas linhas no seu arquivo .mc (linux.mc) e
recompile para gerar um novo arquivo do sendmail.cf

m4 < linux.mc > ./etc/sendmail.cf  # para recompilar...

Acrescentar no linux.mc:

dnl  Redirect all email to unknown people to Postmaster.
dnl
dnl define(`LUSER_RELAY', `local:postmaster')dnl

Ou se quiser fazer no bra�o, o "+++ sendmail.cf.new1" cont�m as regras
ditadas pelas linhas acima:

/etc/mail # diff -u sendmail.cf.new sendmail.cf.new1
--- sendmail.cf.new     2003-12-19 18:14:03.000000000 -0200
+++ sendmail.cf.new1    2003-12-19 18:14:38.000000000 -0200
@@ -16,7 +16,7 @@
 #####
 #####          SENDMAIL CONFIGURATION FILE
 #####
-##### built by root@ on Fri Dec 19 18:14:02 BRST 2003
+##### built by root@ on Fri Dec 19 18:14:38 BRST 2003
 ##### on SuSE Linux 8.2 (i586)
 ##### in /etc/mail
 ##### using /usr/share/sendmail/ as configuration include directory
@@ -119,6 +119,9 @@
 # "Smart" relay host (may be null)
 DS

+# place to which unknown users should be forwarded
+Kuser user -m -a<>
+DLlocal:postmaster

 # operators that cannot be in local usernames (i.e., network indicators)
 CO @ % !
@@ -909,6 +912,10 @@
 # prepend an empty "forward host" on the front
 R$+                    $: <> $1

+# send unrecognized local users to a relay host
+
+R< > $+                $: < $L > $(user $1 $)          look up user
+R< $* > $+ <>          $: < > $2                       found; strip $L

[]s

Marcus Vinicius P Coimbra
[EMAIL PROTECTED]


---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a