How to enable postfix for all domains?

How to enable postfix for all domains? do we need bind ? Also how to send emails from php

now i have

Apache Webserver
Postfix Mail Server
Dovecot IMAP/POP3 Server
ProFTPd FTP Server
SSH Server
MySQL Database Server

  • Mail for domain Core 3.74.gpl Show domains
  • BIND DNS domain Core 3.74.gpl Show domains
  • Apache website Core 3.74.gpl Show domains
  • Webalizer reporting Core 3.74.gpl Show domains
  • SSL website Core 3.74.gpl Show domains
  • Log file rotation Core 3.74.gpl Show domains
  • MySQL database Core 3.74.gpl Show domains
  • PostgreSQL database Core 3.74.gpl Show domains
  • ProFTPd virtual FTP Core 3.74.gpl Show domains
  • Spam filtering Core 3.74.gpl Show domains
  • Virus filtering Core 3.74.gpl Show domains
  • Webmin login Core 3.74.gpl Show domains
  • AWstats reporting Plugin 4.2 Configure | Open
  • DAV Login Plugin 3.3 Configure
  • Mailman Plugin 5.7 Configure | Open
  • Protected web directories Plugin 2.3
Status: 
Active

Comments

Howdy -- Postfix should be enabled for all domains by default. You can verify that by checking two things:

  1. In System Settings -> Features and Plugins, make sure "Mail for domain" is checked

  2. In Edit Virtual Server -> Enabled Features, verify that "Mail for domain enabled?" is selected

BIND should also be enabled by default, though you don't necessarily need to be running that locally in order to send email -- though you do have to have DNS servers of some sort setup.

As far as sending email from PHP -- again here, this should work by default. There's a number of ways to actually send an email from within PHP, including the "mail()" function described here:

http://www.php.net/manual/en/function.mail.php

All the above should work out of the box on a typical Virtualmin setup.