November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

control file of qmail

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.

Control file Setting the standard Process to use it Purpose
badmailfrom None specified qmail-smtpd Black list of the From address
bouncefrom MAILER-DAEMON qmail-send username of bounce sender
bouncehost same as me qmail-send bounce the host name of the sender
concurrencylocal Ten qmail send Number that can be simultaneously delivered to the local
concurrencyremote Twenty qmail send The number of simultaneous deliveries possible remote
defaultdomain same as me qmail inject Default domain name
defaulthost me the same as the qmail inject The default host name
databytes 0 qmail-smtpd The maximum number of bytes in the message (0 = no limit)
doublebouncehost same as me qmail send Host name in the case of a double bounce
doublebounceto postmaster qmail send User to receive a double bounce
envnoathost same as me qmail send Default domain name at the time of the address without “@” mark
helohost same as me qmail remote Host name used in SMTP HELO
idhost same as me qmail inject Message ID host name for the
localiphost same as me qmail-smtpd Host name that replaces the local IP address
locals same as me qmail send Domain name to the local
me FQDN of the system Lot Default for the control of many files
(. domain name machine name) officially domain formal name
morercpthosts Unspecified qmail-smtpd secondary rcpthosts database
percenthack Unspecified qmail send domains That CAN use “%” – Style Relaying
plusdomain same as me qmail inject Domain name is substituted by a “+”
qmqpservers Unspecified qmail-qmqpc IP address of the server QMQP
queuelifetime 604800 qmail send The time messages can remain in the queue (s)
rcpthosts Unspecified qmail-smtpd Domain name to allow the receipt of e-mail
smtpgreeting same as me qmail-smtpd The SMTP greeting message (greeting)
smtproutes None specified qmail remote Destination of SMTP,
it can be transferred to a destination you specify the e-mail that arrives in qmail.
timeoutconnect Sixty qmail remote Wait for the SMTP connection time (in seconds)
timeoutremote 1200 qmail remote And waits for the remote server time (in seconds)
timeoutsmtpd 1200 qmail-smtpd Wait for the SMTP client time (in seconds)
virtualdomains Unspecified qmail send User name and virtual domain

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”.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>