Setup qmail relay




















We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings. Privacy Statement. Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.

Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.

Some examples include: cookies used for remarketing, or interest-based advertising. Search Loading. Trailblazer Community. Sign Up Log In. Home Contact Support My Cases. Live chat: Let's Chat. Cookie Consent Manager. If you're thinking "this sounds like an open relay", you are correct. It IS an open relay. This is why almost every "run" script for an SMTP service, including my own , includes code which makes sure that the rcpthosts file exists, and refuses to start the SMTP service if it does not exist.

When a client connects to qmail-smtpd and wants to send a message to your server, qmail-smtpd walks through a set of tests to determine whether or not to accept the message. The logic behind those tests looks like this:. The normal method of setting this variable is by adding a command to the tcpserver access control file which sets the variable based on the client's IP address.

This normally looks like x. With the appropriate patch, if a successful AUTH command has been sent by the client, accept the message. If the rcpthosts file does not exist, accept the message. This condition should never happen. If the domain name portion of the recipient is listed in the rcpthosts file i. If the domain name portion of the recipient is listed in the morercpthosts. If none of these conditions are true, qmail-smtpd will refuse to accept the message and the SMTP client will receive an error message which looks like this:.

While this is the most commonly seen message, other messages are possible depending on which anti-SPAM patches you are using. These other messages should be self-explanatory, this web page is not going to spend a lot of time trying to guess and explain every possible message. The sections below provide more detail about each of the conditions which can make qmail-smtpd accept a message.

This variable normally does not exist, unless you are purposely setting up an open relay for some reason. Normally qmail-smtpd runs as a child under a program called tcpserver. It also sets some environment variables to tell the command things like what the client's IP address is, since the command would otherwise have no way to tell.

The access control file can also be used to add your own environment variables when a client connects from a certain IP range. Clients connecting from a



0コメント

  • 1000 / 1000