[메일] sendmail source 설치 방법
[Sendmail-8.11.6] Last updated $Date: 2001/08/20
– ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.11.6.tar.gz
-> gzip -d sendmail.8.11.6.tar.gz
-> tar xvf sendmail.8.11.6.tar
-> cd sendmail-8.11.6/
-> Stuff to read before install : README,INSTALL,RELEASE_NOTES
-> ./Build
-> cd cf/cf
-> cp generic-linux.mc config.mc
-> vi config.mc
( http://nos.co.kr/dataroom/docdata/files/powerDNS.doc 참고)
( http://www.sendmail.org/tips/relaying.html 참고)
———————————————————————————
divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $’)
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
FEATURE(access_db)dnl
FEATURE(promiscuous_relay)dnl // relay 모두허용 할거 아님..이행 제거.
FEATURE(accept_unresolvable_domains)dnl
FEATURE(virtusertable, btree /etc/mail/domainaliases.db)dnl
FEATURE(genericstable, btree /etc/mail/useraliases.db)dnl
FEATURE(accept_unqualified_senders)dnl
——————————————————————————–
-> ./Build config.cf
-> cp config.cf /etc/mail/sendmail.cf
-> mkdir /etc/mail
-> cd ../../
-> ./Build install
-> touch /var/spool/mqueue
-> chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
-> chown root / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
-> touch /etc/mail/access
-> touch /etc/mail/aliases
-> touch /etc/mail/domainaliases
-> touch /etc/mail/useraliases
-> echo “localhost” > /etc/mail/local-host-names
-> makemap btree /etc/mail/domainaliases.db < /etc/mail/domainaliases
-> makemap btree /etc/mail/useraliases.db < /etc/mail/useraliases
-> makemap hash /etc/mail/access.db < /etc/mail/access
-> /usr/sbin/sendmail -v -bi
-> /usr/sbin/sendmail -bd -q30m