Vpopmail daemon and Configuration: Difference between pages

From QmailToaster
(Difference between pages)
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
 
No edit summary
 
Line 1: Line 1:
# cd /var/qmail/supervise && qmailctl stop
== [[ Initial Configuration ]] ==
# install -d -m1751 vpopmaild && chmod 1700  vpopmaild && chown qmaill:qmail vpopmaild && install -d -m751 vpopmaild/log && chmod 0700  vpopmaild/log<br>
 
# printf '%s\n' \
== [[Domains]] ==
'#!/bin/sh' \
Follow this link for information about configuring domains.
'QMAILDUID=`id -u vpopmail`' \
 
'NOFILESGID=`id -g vpopmail`' \
== [[Users]] ==
'VPOPD=/home/vpopmail/bin/vpopmaild' \
Follow this link for information about configuring users.
'' \
 
'exec 2>&1' 'exec /usr/bin/tcpserver -vRHD -u "$QMAILDUID" -g "$NOFILESGID" 127.0.0.1 89 $VPOPD' \
List of [[Mobile Device]] which succesfully connect to QmailToaster with SMTP-Auth and Submission Port
>./vpopmaild/run<br>
 
# printf '%s\n' \
List of [[Wapmail]] for mobile users with GPRS and Wap Browser Handphone
'#!/bin/sh' \
 
'LOGSIZE=`cat /var/qmail/control/logsize`' \
== Control Files ==
'LOGCOUNT=`cat /var/qmail/control/logcount`' \
The majority of the configuration files are located in the '''/var/qmail/control ''' directory.
'exec /usr/bin/setuidgid qmaill \' \
 
'    /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT \' \
 
'    /var/log/qmail/vpopmaild 2>&1' \
man '''qmail-control''' excerpt:
> ./vpopmaild/log/run<br>
 
# chown -R qmaill:qmail vpopmaild && chmod 0751 ./vpopmaild/run && chmod 0751 ./vpopmaild/log/run
You can change the behavior of the '''qmail''' system by modifying '''qmail''''s <u>control</u> <u>files</u> in '''/var/qmail/control'''.
  # qmailctl start && firewall-cmd --zone=public --add-port=89/tcp --permanent && firewall-cmd --reload
 
# yum -y install telnet
'''qmail''' [but not Qmail-Toaster] can survive with just one control file, [[me]], containing the fully-qualified name of the current host. This file is used as the default for other hostname-related control files.
# telnet 127.0.0.1 89
 
Trying 127.0.0.1...
Comments are allowed in [[badhelo]], [[badmailfrom]], [[badmailfromnorelay]], [[badmailto]], [[badmailtonorelay]], [[locals]], [[percenthack]], [[qmqpservers]], [[rcpthosts]], [[smtproutes]], and [[virtualdomains]]. Trailing spaces and tabs are allowed in any [qmail] control file.
Connected to 127.0.0.1.
 
Escape character is '^]'.
 
+OK
=== [[Control Files List]] ===
quit
=== [[Control Files by Name]] ===
+OK
Table of Control Files organized alphabetically with default values, included with Qmail-Toaster, and used by information.
Connection closed by foreign host.
=== [[Control Files by Function]] ===
Links to Control File descriptions organized by module.
 
 
== Filtering ==
=== Pre Receipt ===
==== [[chkuser]] ====
 
==== [[RBLs]] ====
 
==== [[SPF]] ====
 
==== [[Spamdyke]] ====
 
=== Post Receipt ===
==== [[domainkeys]] ====
 
==== [[simscan]] ====
 
==== [[clamav]] ====
 
==== [[spamassassin]] ====
 
==== [[Amavis]] ====
 
==== [[Spam Throttle]] ====
 
==== [[Fail2ban]] ====
 
==== [[SURBL]] ====
 
 
== Networking ==
=== Domain Name Server ===
[http://www.oreilly.com/catalog/linuxckbk/ <i>The Linux Cookbook</i> (O'Reilly) by Carla Schroder] has very good recipes for setting up a DNS server. Caching, public and private servers for both bind and djbdns are covered. You can also read it online [http://safari.oreilly.com/0596006403/linuxckbk-PREFACE-2#X2ludGVybmFsX1RvYz94bWxpZD0wNTk2MDA2NDAzL2xpbnV4Y2tiay1DSFAtMjQ= here].
 
==== bind ====
A very nice tutorial for bind can be found [http://www.troubleshooters.com/linux/dns.htm here].
 
To install a bind caching name server, you can follow these steps.
Note: This was done on CentOS 5.4 x86_64, so YMMV.
  Do this all as root.
 
# Install caching name-server
#* # yum -y install bind caching-nameserver
# Set named up to run after reboot. And start named
#* # chkconfig named on
#* # service named start
# Edit /etc/resolv.conf and add the following above other entries
#* nameserver 127.0.0.1
# Test
#* # dig qmailtoaster.com | grep "^;; SERVER"
#* If you get ";; SERVER: 127.0.0.1#53(127.0.0.1)" then you're good to go.
 
==== djbdns ====
A very nice tutorial for djbdns can be found [http://www.troubleshooters.com/linux/djbdns/index.htm here].
 
=== SRS - [[Configuring SRS on Toaster 1.03-1.3.13+]] ===
 
=== [[tcp.smtp]] ===
 
=== [[tcpserver options/flags]] ===
 
== Security ==
=== [[Certificate]] ===
 
=== [[eMPF]] ===
 
=== [[Fail2Ban]] ===
 
=== [[SSL]] ===
 
=== [[SSL on submission port]] ===
 
=== [[Securing SquirrelMail|SquirrelMail]] ===
 
=== [[ Secure Qmail web administration ]] ===
 
== [[Dovecot]] ==
 
== [[Vpopmail]] ==
 
== [[PHP]] ==
 
== [[Redirection]] ==
Follow this link for information about how to redirect email to different addresses.

Revision as of 22:15, 26 March 2024

Initial Configuration

Domains

Follow this link for information about configuring domains.

Users

Follow this link for information about configuring users.

List of Mobile Device which succesfully connect to QmailToaster with SMTP-Auth and Submission Port

List of Wapmail for mobile users with GPRS and Wap Browser Handphone

Control Files

The majority of the configuration files are located in the /var/qmail/control directory.


man qmail-control excerpt:

You can change the behavior of the qmail system by modifying qmail's control files in /var/qmail/control.

qmail [but not Qmail-Toaster] can survive with just one control file, me, containing the fully-qualified name of the current host. This file is used as the default for other hostname-related control files.

Comments are allowed in badhelo, badmailfrom, badmailfromnorelay, badmailto, badmailtonorelay, locals, percenthack, qmqpservers, rcpthosts, smtproutes, and virtualdomains. Trailing spaces and tabs are allowed in any [qmail] control file.


Control Files List

Control Files by Name

Table of Control Files organized alphabetically with default values, included with Qmail-Toaster, and used by information.

Control Files by Function

Links to Control File descriptions organized by module.


Filtering

Pre Receipt

chkuser

RBLs

SPF

Spamdyke

Post Receipt

domainkeys

simscan

clamav

spamassassin

Amavis

Spam Throttle

Fail2ban

SURBL

Networking

Domain Name Server

The Linux Cookbook (O'Reilly) by Carla Schroder has very good recipes for setting up a DNS server. Caching, public and private servers for both bind and djbdns are covered. You can also read it online here.

bind

A very nice tutorial for bind can be found here.

To install a bind caching name server, you can follow these steps. Note: This was done on CentOS 5.4 x86_64, so YMMV.

Do this all as root.
  1. Install caching name-server
    • # yum -y install bind caching-nameserver
  2. Set named up to run after reboot. And start named
    • # chkconfig named on
    • # service named start
  3. Edit /etc/resolv.conf and add the following above other entries
    • nameserver 127.0.0.1
  4. Test
    • # dig qmailtoaster.com | grep "^;; SERVER"
    • If you get ";; SERVER: 127.0.0.1#53(127.0.0.1)" then you're good to go.

djbdns

A very nice tutorial for djbdns can be found here.

SRS - Configuring SRS on Toaster 1.03-1.3.13+

tcp.smtp

tcpserver options/flags

Security

Certificate

eMPF

Fail2Ban

SSL

SSL on submission port

SquirrelMail

Secure Qmail web administration

Dovecot

Vpopmail

PHP

Redirection

Follow this link for information about how to redirect email to different addresses.