Code: Select all
debian:~# apt-get install postfix
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin libsasl2-modules resolvconf postfix-cdb
Recommended packages:
mail-reader
The following NEW packages will be installed:
postfix
0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Need to get 0B/1146kB of archives.
After unpacking 2781kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package postfix.
(Reading database ... 19370 files and directories currently installed.)
Unpacking postfix (from .../postfix_2.3.8-2_amd64.deb) ...
Setting up postfix (2.3.8-2) ...
Postfix configuration was not changed. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
Running newaliases
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
debian:~# cat /var/log/mail.log
Aug 5 18:27:19 debian sendmail[3307]: gethostbyaddr(209.9.237.227) failed: 1
Aug 5 18:27:19 debian sendmail[3307]: alias database /etc/mail/aliases rebuilt by root
Aug 5 18:27:19 debian sendmail[3307]: /etc/mail/aliases: 4 aliases, longest 10 bytes, 66 bytes total
Aug 5 18:27:19 debian sm-mta[3343]: gethostbyaddr(209.9.237.227) failed: 1
Aug 5 18:27:19 debian sm-mta[3345]: starting daemon (8.13.8): SMTP+queueing@00:10:00
Aug 5 18:31:27 debian sendmail[3390]: m75IVLso003390: from=root, size=0, class=0, nrcpts=0, relay=root@localhost
Aug 6 17:52:36 debian sendmail[12180]: gethostbyaddr(209.9.237.227) failed: 1
Aug 6 17:52:36 debian sendmail[12180]: alias database /etc/mail/aliases rebuilt by root
Aug 6 17:52:36 debian sendmail[12180]: /etc/mail/aliases: 4 aliases, longest 10 bytes, 66 bytes total
Aug 6 17:52:37 debian sm-mta[12216]: gethostbyaddr(209.9.237.227) failed: 1
Aug 6 17:52:37 debian sm-mta[12218]: starting daemon (8.13.8): SMTP+queueing@00:10:00
Aug 6 17:57:48 debian postfix/master[12708]: daemon started -- version 2.3.8, configuration /etc/postfix
Aug 6 19:11:47 debian postfix/master[12708]: terminating on signal 15
Aug 6 19:14:23 debian sendmail[13760]: gethostbyaddr(209.9.237.227) failed: 1
Aug 6 19:14:23 debian sendmail[13760]: alias database /etc/mail/aliases rebuilt by root
Aug 6 19:14:23 debian sendmail[13760]: /etc/mail/aliases: 4 aliases, longest 10 bytes, 66 bytes total
Aug 6 19:14:24 debian sm-mta[13796]: gethostbyaddr(209.9.237.227) failed: 1
Aug 6 19:14:24 debian sm-mta[13798]: starting daemon (8.13.8): SMTP+queueing@00:10:00
Aug 6 19:15:16 debian sendmail[13810]: m76JEkTS013810: from=root, size=0, class=0, nrcpts=1, relay=root@localhost
Aug 6 19:15:53 debian sm-mta[13849]: gethostbyaddr(209.9.237.227) failed: 1
Aug 6 19:15:53 debian sm-mta[13851]: starting daemon (8.13.8): SMTP+queueing@00:10:00
Aug 6 19:22:42 debian postfix/master[14777]: daemon started -- version 2.3.8, configuration /etc/postfix
Aug 6 19:23:50 debian postfix/master[14777]: reload configuration /etc/postfix
Aug 6 19:27:53 debian postfix/master[14777]: terminating on signal 15
Aug 6 19:27:54 debian postfix/master[14870]: daemon started -- version 2.3.8, configuration /etc/postfix
Aug 7 03:34:32 debian postfix/master[14870]: terminating on signal 15
Aug 7 03:34:50 debian postfix/master[16374]: daemon started -- version 2.3.8, configuration /etc/postfix
debian:~# postconf -e "myorgin = mysite.org"
debian:~# postconf -e "relay_domains = site1.org, site2.org"
debian:~# postfix reload
postfix/postfix-script: refreshing the Postfix mail system
debian:~# telnet localhost 25
-bash: telnet: command not found