Relay means that the server accepts the client's SMTP request and forwards the messages sent by the client to a third party. QMail control relay is very simple, as long as the client access to the SMTP process environment variable contains (relayclient= "") to allow relay, or reject. The implementation method is to set the IP relay (relayclient= "") that needs to be in the/ETC/TCP.SMTP, and then generate the rule table with Tcprules. Because this article is to implement the relay after SMTP authentication, do not need any IP to pre-set, so the default rule set to "relay only for this server." The/ETC/TCP.SMTP content should be:
5. Set the/HOME/VPOPMAIL/BIN/VCHKPW setuid and Setgid
This is important, otherwise the certification will not pass. This is because the SMTPD process is performed by Qmaild. The password validator was originally used only in the POP3 process, executed by root or vpopmail, to read the password in shadow or the database, and to remove the user's Mail directory. These operations qmaild do not have permission to do so. If the SMTP process wants to invoke the password validator, you must use Setuid and setgid. In fact, this can be assured, these two password authentication programs are with the source code, itself is very safe, just want to put in a safe directory can be set up other users, in addition to Qmaild executable do not have the right to execute; in fact, if there is no other shell account, it is not so troublesome.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.