Tags:
, view all tags

Configuração de e-mails

Descrição

Complementando o http://www.sprace.org.br/Twiki/bin/view/Main/EntryDescriptionNo3, modificamos na osg-ce

o sendmail.mc
[root@osg-ce ~]# vim /etc/mail/sendmail.mc
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.150, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=200.136.80.4, Name=MTA')dnl
[root@osg-ce ~]# make -C /etc/mail; /etc/init.d/sendmail restart
a linha em
[root@osg-ce ~]# more /etc/mail/local-host-names 
osgce.grid
é essencial para que ele receba e-mail dos nodes com o aliases apropriado

A mesma modificação é feita nos nodes. Primeiro modificamos o sendmail.mc (padrão) de um deles

dnl FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
dnl EXPOSED_USER(`root')dnl
dnl #FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`nullclient',`[192.168.1.150]')dnl
MASQUERADE_AS(`sprace.org.br')dnl
MASQUERADE_AS(sprace.org.br)dnl
FEATURE(masquerade_envelope)dnl
LOCAL_DOMAIN(`sprace.org.br')dnl
dnl MAILER(smtp)dnl
dnl MAILER(procmail)dnl
[root@node21:~]# vim /etc/mail/access
192.168.1                       RELAY
[root@node21:~]#vim /etc/mail/local-host-names
sprace.org.br


[root@node21:~]# yum install sendmail-cf -y;makemap hash /etc/mail/local-host-names < /etc/mail/local-host-names; makemap hash /etc/mail/access < /etc/mail/access 
[root@node21:~]# make -C /etc/mail; /etc/init.d/sendmail restart
[root@node21:~]# cp -pr /etc/mail /home/mdias/mailnode

e da ce

[root@osg-ce ~]# clcmd 'mv /etc/mail /etc/mail.old; cp -pr /home/mdias/mailnode /etc/mail;/etc/init.d/sendmail restart'

Agora, usuários comuns , enviando e-mail dos nodes terão o domínio sprace.org.br incluido.

-- MarcoAndreFerreiraDias - 19 Jun 2008

Edit | Attach | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2008-06-20 - MarcoAndreFerreiraDias
 

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort