- 다른 뜻에 대해서는 CentOS sendmail 설치 문서를 참조하십시오.
- 우분투 sendmail 설치
1 확인[ | ]
Console
Copy
root@zetawiki:~# dpkg --get-selections | grep sendmail
root@zetawiki:~#
2 설치[ | ]
Console
Copy
root@zetawiki:~# apt-get install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
m4 make procmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Suggested packages:
make-doc sendmail-doc rmail logcheck sasl2-bin
Recommended packages:
default-mta mail-transport-agent fetchmail
The following NEW packages will be installed:
m4 make procmail sendmail sendmail-base sendmail-bin sendmail-cf
sensible-mda
0 upgraded, 8 newly installed, 0 to remove and 71 not upgraded.
Need to get 1,158 kB of archives.
After this operation, 5,035 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Console
Copy
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main m4 amd64 1.4.17-2ubuntu1 [195 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main make amd64 3.81-8.2ubuntu3 [119 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/universe sendmail-base all 8.14.4-4.1ubuntu1 [139 kB]
... (생략)
Creating /etc/mail/Makefile...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Warning: confCT_FILE source file not found: /etc/mail/trusted-users
it was created
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Warning: confCW_FILE source file not found: /etc/mail/local-host-names
it was created
Warning: access_db source file not found: /etc/mail/access
it was created
Updating /etc/mail/access...
Linking /etc/aliases to /etc/mail/aliases
Informational: ALIAS_FILE file empty: /etc/mail/aliases
Updating /etc/mail/aliases...
/etc/mail/aliases: 0 aliases, longest 0 bytes, 0 bytes total
Warning: 3 database(s) sources
were not found, (but were created)
please investigate.
* Starting Mail Transport Agent (MTA) sendmail [ OK ]
Setting up procmail (3.22-21ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up sensible-mda (8.14.4-4.1ubuntu1) ...
Setting up sendmail (8.14.4-4.1ubuntu1) ...
3 확인 2[ | ]
Console
Copy
root@zetawiki:~# dpkg --get-selections | grep sendmail
sendmail install
sendmail-base install
sendmail-bin install
sendmail-cf install
Console
Copy
root@zetawiki:~# netstat -tnlp | grep sendmail
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 20411/sendmail: MTA
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 20411/sendmail: MTA
Console
Copy
root@zetawiki:~# service sendmail status
MSP: is run via cron (20m)
MTA: 20411 /usr/sbin/sendmail-mta -Am -L sm-mta -bd -q10m
UID PID PPID C STIME TTY TIME CMD
root 20411 1 0 09:44 ? 00:00:00 sendmail: MTA: accepting connections
Daemon Status: (process 21179) Console socket child
Current number of children: 0
QueueDir free disk space (in blocks): 8751480
Load average: 0
Child Process 20411 Status: accepting connections
QUE: Same as MTA
Console
Copy
root@zetawiki:~# cat /etc/cron.d/sendmail | grep -v ^#
MAILTO=root
*/20 * * * * smmsp test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
4 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.