![]() ![]() Mailer.conf - configuration file for mailwrapper(8. The file /etc/mail/mailer.conf contains a series. Sendmail-workalike like Postfix in place of. Config.action_mailer.raise_delivery_errors = true. Config_directory = /etc/postfix. Smtpd_banner = $myhostname ESMTP $mail_name. Postfix is fast out of the box, but like other packages, you can usually tune it to work even faster. Furthermore, there are situations where Postfix may not perform as well as you expected, whether because of hardware or software limitations on the server system or other adverse conditions, such as a big influx of spam or undeliverable mail. This article shows you how to find and analyze the most common performance problems. This article is excerpted from the newly published book '.' We will first look at a few elementary tweaks that still may not be terribly obvious. Think of the suggestions here as a checklist for solving or avoiding simple problems. Above all, keep in mind that many performance problems are actually caused by a flawed setup, such as a bad /etc/resolv.conf file. The following points appear in no particular order; they're all of equal importance. Speeding up DNS lookups Postfix does a lot of DNS queries because SMTP requires lookups for MX and A records. Furthermore, many of the Postfix restrictions use DNS lookups to verify a client's hostname or to perform a blacklist lookup. Therefore, it's critical that your server be able to look up DNS records quickly, especially if you have a high amount of traffic. The most common problem with DNS name resolution is that queries take too long. You can use the dig command to perform a DNS lookup and display detailed information about the query's execution: $ dig www.example.com; > DiG 9.2.3rc4 > www.example.com;; global options: printcmd;; Got answer:;; ->>HEADER> DiG 9.2.3rc4 > www.example.com;; global options: printcmd;; Got answer:;; ->>HEADER. This is the best solution for servers where their configuration does not allow you to send emails directly. For example it can be a development server where you develop applications and this server only has Internet connection without white IP-address. Install Postfix cd /usr/ports/mail/postfix && make install Then a config menu appears where you need to choose the following options: PCRE, TLS, SASL2. For dependent packages you may leave default config options. But, be attentive at the end of installation, the installer will ask you: Would you like to activate Postfix in /etc/mail/mailer.conf [n] You have to answer 'y'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2018
Categories |