In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
SMTP supplement
Maillinux.linux.com host ip:172.25.254.145
Mailwestos.westos.com host ip:172.25.254.245
Real host ip:172.25.254.45
# #
1. Cannot be sent (client hostname / address limit)
Postfix access encrypts files
Filter client
Accept the connection request from the client if the ip address of the client meets the range defined by the $mynetworks parameter
; reject_maps_rbl: reject if the network address of the client matches the value of the $maps_rbl_domains parameter
Connection request for this client)
Client test
two。 Deny an email to a user (restricted by the sender's address)
In the / etc/paostfix/sender file, write to
Find the sender.
Restrict the user if the user is written in the sender file. Cannot send an email and then restart the service
test
3. Cannot be received (filtered by recipient address)
In the / etc/paostfix/recip file, write to
Find the recip.
Regardless of the hostname of the client, the client SMTP is rejected as long as the following conditions are met
test
# #
4.dovecot (tofu cubes)
Install dovecot
Modification of configuration file
Change two places
Change one place
Create a new user and set the password
Create directories and files
Restart the service and find that the port is open
test
Mutt-f pops://westos@172.25.254.245
5. Use Thunderbird to test whether you can receive email on a real machine.
* install Thunderbirds
Just unpack the Thunderbird package, press it and enter the Thunderbird home directory and click on the slash to run thunderbird. You can just yum what is missing.
Since there are many missing packages, write a script
Yum whatprovides $1
every time. After / thunterbird
Software missing from sh script name
* add Thunderbird account
-"right-click" Settings-- "account Operation--" add email account-- "fill in the information:
-- "continue to click OK:
-"at present, our Thunderbird is not encrypted, nor does it need a password:
6. Database connection mailbox
Web page database
Database mail table muser
Create users and give permissions
Query test
Cd / etc/postfix/
Postmap-Q "admin@westos.org" mysql:/etc/postfix/mysql-users.cf
Query test
Vim mysql-domain.cf
Postmap-Q "admin@westos.org" mysql:/etc/postfix/mysql-domain.cf
Query test
Vim mysql-maildir.cf
Postmap-Q "admin@westos.org" mysql:/etc/postfix/mysql-maildir.cf
Virtual users in the database send emails
Groupadd-g 666 vmail
Useradd-g 666-u 666 vmail
Virtual users in the database receive mail
Vim dovecot.conf
Protocols = imap pop3 lmtp
Disable_plaintext_auth = no
Virtual users in the database receive email
Cd / etc/dovecot/
Vim dovecot.conf
Protocols = imap pop3 lmtp
Disable_plaintext_auth = no
Cd conf.d/
Vim 10-auth.conf
Vim 10-mail.conf
test
Telnet 172.25.254.245 110
7. Shell mail
Configure DNS
Vim / var/named/westos.org.zone
Vim / etc/postfix/main.cf
Real host name
Real domain name
Be the empty shell of which domain
Open port 25
If you send an email to the "empty shell", you will get an error.
Don't write anything, because you don't accept any mail as shell mail.
The main server that processes mail
Systemctl restart postfix.service
The server that actually receives mail (MAT mail server)
Vim / etc/postfix/main.cf
Who is the empty shell?
Systemctl restart postfix.service
Test: emails sent to empty shells end up being handled by the MAT server
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.