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

How to send email with Exim4 under debian

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains "how to send email with Exim4 under debian". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to send email with Exim4 under debian".

Send mail by exim4 under debian

Method 1: send messages directly using SMTP

# dpkg-reconfigure exim4-config

(1) split the configuration document into small files? No

(2) Select the first item and use SMTP to send the letter directly.

(3) system email name, at will; (I wrote admin@ip here)

(4) the IP address of the inbound SMTP connection to be monitored:

127.0.0.1 (in this way, only the native machine can take advantage of exim4)

* (everyone can use it)

192.168.0.0 IP 24, which is available only for this range

(5) other acceptable destination addresses: (empty)

(6) Mail forwarding for these hosts: (empty)

(7) do you keep DNS queries to a minimum (dial Dial-on-Demand on demand)? No

Method 2: use smarthost to send messages

(1) split the configuration document into small files? No

(2) Select "send mail using smarthost; no local mail"

(3) system email name, at will; (I wrote admin@ip here)

(4) the IP address of the inbound SMTP connection to be monitored:

127.0.0.1 (in this way, only the native machine can take advantage of exim4)

* (everyone can use it)

192.168.0.0 IP 24, which is available only for this range

(5) other acceptable destination addresses: (empty)

(6) Mail forwarding for these hosts: (empty)

(7) the machine responsible for handling mail sent from this machine (smarthost): the smtp address that is actually used for outgoing mail (I use smtp.gmail.com here)

(8) do you keep DNS queries to a minimum (dial Dial-on-Demand on demand)? No

Several configuration files need to be modified:

(1) set the account password of / etc/exim4/passwd.client,smtp, and add:

Help 12 stu.xjtu.edu.cn:flowaters@stu.xjtu.edu.cn:password gmail-smtp.l.google.com:admin@vixp.net:password

(2) / etc/email-addresses, system email address, add:

User: admin@ip

Run update-exim4.conf after configuration, and then restart the exim4 service.

Considerations for using exim4 to send messages in web services:

1. The user name running the service is in the mail group before you have mail permission.

two。 The log of sending email is under / var/mail/username/.

Thank you for your reading, the above is the content of "how to send mail with Exim4 under debian". After the study of this article, I believe you have a deeper understanding of how to send mail with Exim4 under debian. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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