Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SUS system postfix mailbox settings

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

[SUS11SP1 below]

It is relatively simple for SUS server to configure postfix mailbox. In SUS11SP1 version, you can configure mailbox directly through yast manager.

1 configure DNS information

Execute the yast command and enter "Network Services/DNS and Hostname".

Configure the appropriate parameters on the page, as shown in the following figure.

Domain Name:tanshishe

Name Server 1:DNS IP

Domain Search:tanshishe

Save the configuration and exit.

2 execute the command to start the system mail service # rcpostfix start

3 verify the configuration result

Execute the following command to manually trigger the Cacti server to send mail to the mailbox.

# echo "test mail body" | mutt-s "test" your_email@tanshishe.com

[SUS11SP3 below]

As the yast manager has changed in sus11sp3, the yast configuration method has not been found. You can manually configure postfix; to enter the / etc/postfix/ directory as follows, and edit the following file.

1 configure main.cf [root@localhost postfix] # vim / etc/postfix/main.cf

1. Myhostname = hostname / / location after mailbox sender @ is displayed

2. Mydomain = TANSHISHE.COM / / the end of the sender of the mailbox is displayed.

3. Inet_interfaces = all / / change the following localhost to all

4. Mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain

5. Mynetworks = 192.168.0.0Accord 24,127.0.0.0Accord8 / / set private network and local IP

After configuring the above information, the format of the mailbox sender has come out of the root@ hostname. TANSHISHE.COM

2 configure master.cf

Since smtp is disabled by default in master.cf, the smtp service needs to be enabled. Compare with the following file, mainly because the two configurations of smtp need to be consistent.

Smtp inet n-n-smtpdpickup fifo n-n 60 1 pickupcleanup unix n-n-0 cleanupqmgr fifo n-n 300 1 qmgrrewrite unix-- n-trivial-rewritebounce unix- -n-0 bouncedefer unix-- n-0 bouncetrace unix-- n-0 bounceverify unix-- n-1 verifyflush unix n-n 1000? 0 flushproxymap unix- -n-- proxymapsmtp unix-- n-- smtprelay unix-- n-- smtp-osmtp_fallback_relay=showq unix n-n-- showqerror unix-- n -errordiscard unix-- n-- discardlocal unix-n-- localvirtual unix-n n-- virtuallmtp unix-- n-- lmtpanvil unix-- N-1 anvilscache unix-- n-1 scachemaildrop unix-n n-- pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop-d ${recipient} cyrus unix-n n-- pipe user=cyrus argv=/ Usr/lib/cyrus/bin/deliver-e-r ${sender}-m ${extension} ${user} uucp unix-n-- pipe flags=Fqhu user=uucp argv=uux-r-n-z-a$sender-$nexthophospharmail ($recipient) ifmail unix-n-- pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail-r $nexthop ($recipient) bsmtp unix -n n-- pipe flags=Fq.user=foo argv=/usr/local/sbin/bsmtp-f $sender $nexthop $recipientprocmail unix-n-- pipe flags=R user=nobody argv=/usr/bin/procmail-t-m / etc/procmailrc$ {sender} ${recipient} retry unix-- n-- Errorproxywrite unix-- n-1 proxymap3 restart the postfix service and verify # rcpostfix start# echo "test mail body" | mutt-s "test" your_email@tanshishe.com

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report