fml 8 tutorial
Prev | Chapter 4. fml8 Installation On Unix | Next

# MTA Configuration (postfix)

Please set up postfix properly before "makefml newml" can set up a ml.

## Default Domain (Example: fml.org)

Set up /etc/postfix/main.cf like this:

    [/etc/postfix/main.cf]

    allow_mail_to_commands = alias,forward,include

    alias_maps	=	hash:/etc/mail/aliases
    			hash:/var/spool/ml/etc/mail/aliases

Warning
Please check that $mydestination contains the default domain (may be $mydomain).

## Virtual Domain (Example: nuinui.net)

You need to edit /etc/postfix/main.cf to set up $virtual_maps.

    [/etc/postfix/main.cf]

    allow_mail_to_commands = alias,forward,include

    alias_maps	=	hash:/etc/mail/aliases
    			hash:/var/spool/ml/etc/mail/aliases
    			hash:/var/spool/nuinui.net/etc/mail/aliases

    virtual_maps	=	hash:/var/spool/nuinui.net/etc/postfix/virtual

    [/usr/local/etc/fml/ml_home_prefix]

    nuinui.net /var/spool/nuinui.net

Both alias files and /var/spool/nuinui.net/etc/postfix/virtual are updated by makefml automatically where we suppose ml_home_prefix_maps defines

    nuinui.net /var/spool/nuinui.net

relation.

Warning
Postfix variable $mydestination should contain the default domain (may be $mydomain) but not virtual domain. Pay attention that we assume we use postfix style virtual domain. Please see postfix document for more details. When you begin to use a new virtual domain, you need to update both $alias_maps and $virtual_maps in /etc/postfix/main.cf. Also, you have to update /usr/local/etc/fml/ml_home_prefix by running "makefml newdomain". Recent postfix has $virtual_alias_maps and $virtual_maps variables. But $virtual_alias_maps = $virtual_maps by default. You can use either.

Prev | Home | Next
Virtual Domain | Up | MTA configuration (qmail)

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.