control file of qmail
Presented by demilitarized area
December 31, 2003 Last updated:
control file, which controls the behavior of qmail resides in / var / qmail / control directory. Unlike such as sendmail, each control, it is not organized in a single file, you can set as a file of each control in qmail.
There is something like the following in the configuration file.
For example, in defaulhost file,
hogehoge.co.jp
I want to configure it. In this way, the host name in the header information on when you send an email,
username @ Hogehoge.Co.Jp
It will be forwarded to the other party to become only the name that is specified and so on. The control file called locals, the domain name other than your own, it is better to also specify the domain name in the form that has a host name is good. Mail addressed to the address that you specify here, to determine the local user destined to this server.
localhost
Hogehoge.Co.Jp
Ms.Hogehoge.Co.Jp
In this way, it is should be able to receive mail addressed from the external mail server. The rcpthosts file, be sure to specify what to accept as the address of the @ or later that can be specified as the address of the reception. Here is the same content as those specified almost “locals”. Whereas the process as the mail destined to itself when it receives an email address that is specified by the locals, once (for example, the difference between the locals, where after receiving yourself no mail not addressed to itself in rcpthosts You can get even the address of the mail), such as crab transfer.
localhost
Hogehoge.Co.Jp
.Hogehoge.Co.Jp
In the case where the last verse as “.hogehoge.co.jp”, I would like to receive mail addressed to sub-address of all marked with “hogehoge.co.jp”.
In the above settings, when the mail arrives to the mail server of qmail, mail a translation was to gain access to users in the qmail server, but to send mail to another mail server via the qmail server, to qmail server need to get with the “mail relay” comes out. However, since it could allow simply “mail relay”, there is a risk of being exploited SPAM mail that external users to perform mail to user addressed to another external, it does not allow mail relay by default.
So, 2-1 Use the “RELAYCLIENT =” “” environment variable as explained in the mail from the internal user is a translation you have not applied to this limit. And if you build a server of qmail in DMZ, if you want to forward mail to the firewall inside the firewall outside, you can write to the control file named smtproute the destination.
(Example of smtproute)
.hogehoge.co.jp: betu-host.hogehoge.co.jp hogehoge.co.jp:betu-host.hogehoge.co.jp .hogehoge.co.jp: [202.12.30.144] : Betu-host.hogehoge.co.jp
As long as you have your with,
as it is mail coming to @ *. hogehoge.co.jp destined will be forwarded to betu-host all the (if there a dot (.) in the beginning) the case of the first line .
Also, if you want to use the IP address instead of a domain name, and so on “. Hogehoge.co.jp:[192.xxx.xxx.xxx]”, you enclose the IP address in square brackets ([]).
If you specify as: “destination”, you can specify the destination of the default. For the meaning of the control file, Http://Www.Jp.Qmail.Org/ of “qmail Annex” – please follow the “qmail-control”.
Recent Comments