[FUGSPBR] Sendmail Resolvido

Luís Vitório Cargnini cargnini em matrix.com.br
Qua Jul 2 03:53:05 BRT 2003


entendam que substitui o nome dee mi nha máquina pela desccrição de como aparece. Primeiro para configurar o sendmail em sua máquina vocês devem entrar no /etc/mail e digitar make, após isso será criado o arquivo com  nome da sua máquina.mc lá dentro deve ter o seguinte
"hostname.domain".mc:
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.27 2002/10/16 22:52:56 kera
mida Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)

dnl agora são somente features a partir deeste ponto
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)
GENERICS_DOMAIN(seu.dominio)
FEATURE(genericstable, hash -o /etc/mail/genericstable)dnl
FEATURE(masquerade_envelope)dnl
dnl Esta é a versão que aparece para quando alguém conecta no meu servidor ao invés de deixar o senmail e a versão eu coloquei minha descrição
define(`confCF_VERSION',`cargnini cf - 16/04/2003')dnl
define(`confCON_EXPENSIVE',`True')dnl
define(`confME_TOO',`True')dnl
define(`confCOPY_ERRORS_TO',`Postmaster')dnl
define(`confMIME_FORMAT_ERRORS',`True')dnl
define(`confTO_QUEUEWARN',`24h')
MASQUERADE_AS(seu.dominio)
FEATURE(masquerade_entire_domain)
MASQUERADE_DOMAIN(seu.dominio)
Cwhostname.dominio
dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl       your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl --------------------------------
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " $&{client_addr
} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}')

dnl New Ant-Spam Features
dnl FEATURE(rbl)
FEATURE(enhdnsbl)
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=, T=C
:15m;S:4m;R:4m;E:10m')

dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')dnl

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `smtp8:[smtp.poa.matrix.com.br]')

dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Uncomment both of the following lines to listen on IPv6 as well as IPv4
dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confMAX_MIME_HEADER_LENGTH', `256/128')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
FEATURE(local_procmail)
MAILER(local)
MAILER(smtp)
Se você fizer isso, gerar o seu hostname.dominio.mc e depois alterá-lo e por fim fizer make e make install o sendmail.cf será gerado automaticamente. e estará igual ao meu.


On Tue, 1 Jul 2003 22:48:28 -0300
"Vitor de Matos Carvalho" <listas em softinfo.com.br> wrote:

> hehe
> 
> Tira ai o que você não pode tornar público e me manda...
> 
>  Regards,
> 
> ---------------------------------------------------
> Vitor de Matos Carvalho - #5602098
> Softinfo Network Administrator
> +55 (71)9971-5011 / +55 (71)9986-9317
> Salvador - Bahia - Brazil
> FreeBSD: The silent Workhorse
> ----- Original Message ----- 
> From: "Luís Vitório Cargnini" <cargnini em matrix.com.br>
> To: "Grupo Brasileiro de Usuarios FreeBSD" <fugspbr em fugspbr.org>
> Sent: Tuesday, July 01, 2003 1:56 PM
> Subject: Re: [FUGSPBR] Sendmail Resolvido
> 
> 
> _______________________________________________________________
> Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
> Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
> 
> 
> _______________________________________________________________
> Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
> Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
> 


-- 
Thanks && Regards
Luís Vitório Cargnini
-------------- Próxima Parte ----------
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/


Mais detalhes sobre a lista de discussão freebsd