Where is qmail log
Line 7 shows the output of the delivery to "log," which contains the Message-ID. Line 9 logs the actual remote delivery status. This will create a loop. Logging the contents of messages may be illegal in some areas. The legality of such logging might depend upon whether users have been notified in advance.
Consult a loca attorney if you're not sure. Regardless of the legality of logging message content, mail administrators should respect the privacy of their users by logging only what they need and keeping the logs accessible only to those who need access. Previous page. Table of content. Next page. Note Inodes are structures that Unix uses to store information about a file such as the owner, group, access permissions mode , and modification and access times, as well as the contents of the file itself.
Line 2 shows that tcpserver has spawned process ID to handle the connection. Line 5 shows that there are no active connections.
Line 4 shows that the connection was terminated with an error nonzero status of Caution While recordio is in use, the tcpserver logs grow dramatically faster than they do when only connections are being logged. If you installed the qmailctl script from Chapter 2, "Installing qmail," that can be done by executing the following command: qmailctl stop Stopping qmail. Then rebuild qmail using this: make setup check. Caution Logging the contents of messages may be illegal in some areas.
Authors: Dave Sill. Postfix: The Definitive Guide. Ant: The Definitive Guide, 2nd Edition. Qshell for iSeries. Adobe After Effects 7. What is Lean Six Sigma. Understanding Digital Signal Processing 2nd Edition.
If you may any questions please contact us: flylib qtcs. Privacy policy. This website uses cookies. Click here to find out more.
Learn more. Asked 12 years, 1 month ago. Active 12 years, 1 month ago. Viewed 6k times. Many Thanks!! Improve this question. Marlon Marlon 2 2 gold badges 10 10 silver badges 14 14 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Scott Lundberg Scott Lundberg 2, 2 2 gold badges 14 14 silver badges 21 21 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. If you receive the message I have no idea what this file does , it means that the file is not one that qmail-showctl recognizes.
There is an exception: qmail-showctl looks at all the files and makes that complaint about the ones not in its list. Envelope addresses not allowed to send mail. If the envelope From address on an incoming message matches an entry in badmailfrom, the SMTP daemon will reject every recipient address.
Entries may be either email addresses, or dom. This is a primitive form of spam filtering. The mailbox of the return address to put in bounce messages. Default: me. The domain of the return address to put in bounce messages. Default: The maximum number of simultaneous local deliveries. Unless you have very slow delivery programs, the default is adequate for all but very large systems.
Keep in mind that if you have slow delivery programs, it is quite possible to have all 10 or however many running as the same user, so be sure that the per-user process limit is high enough to permit them all to run. The maximum number of simultaneous remote deliveries. The default is adequate for small systems, but too low for large systems or systems that host mailing lists.
You should adjust it so that qmail uses as much of your outgoing bandwidth as you want it to. In the distributed version of qmail, you can increase this up to , which is enough for a moderately busy system with mailing lists sharing a T1 with other services.
See Chapter 16 for advice on increasing it past on large systems. Default: the literal string defaultdomain. The domain to add to unqualified host names names with no dot on outgoing mail.
That is, if someone injects a message with a sender or recipient address of fred bad and this file contains example. You invariably want to set this to the local domain. Note that only mail injected via qmail-inject has its header addresses rewritten.
Similar to defaultdomain; the domain to add to addresses in outgoing mail that have no domain at all. Set this to the name of the local domain. Default: 0, meaning no limit. The maximum message size to accept via SMTP. For example:. The domain to which to send double-bounce messages. Default: postmaster. The mailbox to which to send double-bounce messages, that is, they go to doublebounceto doublebouncehost. You can also send these messages to a special mailbox that you examine rarely, or because these days there are vast numbers of double bounces caused by spam with fake return addresses, you can set it to nobody or some other address that just throws them away.
The domain to add to envelope recipient addresses with no domain. This value is used by qmail-send , while defaultdomain is used by qmail-inject , so in practice this value is used to fix up mail received by SMTP. The default value is fine, unless you receive a lot of spam with bare addresses, in which case you can set it to something like invalid to make incoming mail with no domain bounce. The default is fine. The domain to use when creating Message-ID: lines in outgoing mail.
When qmail-smtpd sees incoming mail to an address using a dotted quad rather than a domain name, like fred [ The default is usually fine unless you want to change it to the local mail domain. Domains to treat as local. Any addresses in domains listed in this file are considered to be local and are routed using the local delivery rules.
All local domains are equivalent; if foo. For example, the locals file on my mail server tom. Note that local domains are not the same as virtual domains, nor are they the same as the SMTP recipient domains listed in rcpthosts.
Default: none; this file is required. The name of the current host. This should be the same as what the hostname command returns. Default: none. More domains for which this host accepts SMTP mail. The contents of this file are compiled into morercpthosts. The SMTP daemon consults the cdb file after it checks rcpthosts. If a host accepts mail for more than about 50 domains, Dan suggests that you put the 50 busiest into rcpthosts and the rest into morercpthosts.
In the past 20 years, most of the connectivity problems that require source routing have been solved, and for the ones that remain there are better tools such as smtproutes described later , so the percent hack is obsolete.
If for some reason you absolutely need it you have an ancient mission-critical program for which all the source code has been lost that sends mail using the percent hack, perhaps any addresses in domains listed in percenthack are scanned for percent signs and rewritten. In the previous example, out. If a domain listed in percenthack is also listed in rcpthosts , your system is an open relay, because spammers can send mail anywhere through your system by putting the actual target address in percent form inside an address in the listed domain.
Yes, spammers actually do so. If the domain part of an address in an injected message ends with a plus sign, the contents of plusdomain are appended to the end.
In environments with many subdomains of a single main domain, say east. No longer widely used. A list of servers to which messages can be queued using QMQP. See Chapter Default: seconds a week.
How long to keep trying to deliver a message. More precisely, if qmail tries to send a message and the attempt fails with a temporary error, the error is treated as permanent if the message is older than queuelifetime , in which case the message bounces. Default: every domain. The list of domains for which this host accepts SMTP mail. It is extremely important that this file exist.
When another hosts connects via SMTP to send you mail, the greeting string to send. Explicit routes to use to deliver outgoing mail, overriding MX data. Each line is of one of these forms:. The domain can use wildcards; if it starts with a dot, it matches any target domain that ends with that domain.
If relay is empty, qmail uses the standard MX lookup, letting you override a broader wildcard or smarthost route. Most systems can get by without smtproutes , but there are three situations where it can come in handy. The second is to temporarily patch around broken MX records or mail relays.
The third is to route mail for private domains within your network. Default: 60 seconds. How long to wait for a remote server to accept the initial connection to send mail. Default: seconds. Once a remote server is connected, how long to wait for each response before giving up.
The default of 20 minutes is extremely conservative, and can lead to all of your remote sending slots being tied up while waiting for somnolent remote hosts to time out. Unless you communicate with extraordinarily slow and overloaded remote servers, you can drop it to a minute. How long qmail-smtpd waits for each response from a remote client before timing out and giving up. As with timeoutremote , you can decrease this to a minute unless you have some really slow remote clients.
The list of virtual users and domains for which this system receives mail. The virtual domain scheme works by taking the mailbox in the virtual domain, prepending a string and a hyphen to create a local address, and redelivering the mail to the local address.
The virtual domain file lists the prepend string to use for each virtual user and domain. Form 1 controls mail to a specific address. Forms 2 and 3 control mail to any address in a domain or in subdomains of a domain, respectively.
Form 4 , with an empty prepend, is used to create an exception to a domain that would otherwise be handled by a line of form 3 or 5 and means to handle the domain normally, not as a virtual domain. Form 5 is a catchall and controls all domains not listed in locals or elsewhere in virtualdomains. If a domain erroneously appears both in locals and virtualdomains , the listing in locals takes precedence.
Qmail handles this in a simple, elegant way with the alias pseudo-user. This makes any address not otherwise handled in effect a subaddress of alias, so you can handle addresses by putting. Since qmail handles deliveries using the. Also create. The most common thing to put in that file is a line to run the fastforward program see the next section to take delivery instructions from a file of addresses, roughly as sendmail does.
You can also implement other default delivery rules. It appears wrapped here, but it has to be on one long line in the file. This says that if an address contains a hyphen, strip off the hyphen and everything after it and redeliver it. Otherwise bounce the message. The bouncesaying command lets you provide your own failure message, but a simple exit would do the trick as well, telling qmail to bounce.
0コメント