Ticket #154: qmail-xinetd.patch

File qmail-xinetd.patch, 1.4 KB (added by billy@…, 22 years ago)

Add xinetd configuration

  • qmail-config.xml

    diff --exclude=CVS -Naur ./qmail-config.xml /home/billy/NEWBLFS/BOOK/server/mail/qmail/qmail-config.xml
    old new  
    77
    88<sect3><title>Configuration Information</title>
    99
     10<para>If inetd is used, the following command will add the qmaild
     11entry to <filename>/etc/inetd.conf</filename>: </para>
     12
    1013<para><screen><userinput>
    1114echo "smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env \
    1215tcp-env /var/qmail/bin/qmail-smtpd" >> /etc/inetd.conf
    1316</userinput></screen></para>
    1417
     18<para>If xinetd is used, the following command will add the qmaild
     19entry to <filename>/etc/xinetd.conf</filename>: </para>
     20
     21<para><screen><userinput>
     22cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"
     23service smtp
     24{
     25    disable = no
     26    identifier              = smtp-local
     27    socket_type             = stream
     28    protocol                = tcp
     29    wait                    = no
     30    user                    = qmaild
     31    server                  = /var/qmail/bin/tcp-env
     32    server_args             = /var/qmail/bin/qmail-smtpd
     33    env                     = RELAYCLIENT=
     34    only_from               = 127.0.0.1
     35    log_on_failture         += USERID
     36}
     37EOF     
     38</userinput></screen></para>
     39
    1540<para>To automate the running of qmail, use following command to
    1641create the init.d script:</para>
    1742