iRedMail: Build A Full-Featured Mail Server With LDAP, Postfix, RoundCube, Dovecot, ClamAV,SpamAssassin, DKIM, SPF On CentOS 5.x - Page 2

Set a password for the virtual domain administrator.

Add the first normal user for our virtual domain. e.g.: www.

Set a password for the above normal user.

Enable SPF verification and DKIM verification/sign feature:

Enable the Managesieve service:

Enable POP3, POP3S, IMAP, IMAPS services:

Select webmail, RoundCube is recommended:

Choose the default language for webmail:

Optional components, recommended: select all:

MySQL root password:

Set an alias mail address for the root user:

Now the configuration wizard is finished; afterwards, you just need to restart the machine. You can use http://ip/mail to access the RoundCube webmail.

 

Set Up DNS Record For SPF

Please refer to http://www.openspf.org/ to set up an SPF record.

This is a simple example:

example.com. 3600 IN TXT "v=spf1 mx mx:mail.example.com -all"

 

Set Up DNS Record For DKIM

After the installation, please reboot your system, then use amavisd to help you set up the DNS record:

amavisd showkeys

; key#1, domain example.com, /var/lib/dkim/example.com.pem
dkim._domainkey.example.com.    3600 TXT (
  "v=DKIM1; p="
  "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC054b34nGjxaxAO2ru3MKtNQws"
  "nrUhgHRgQzxM85RbrmJDLS+gqnEej2pW5kxyuAFPCC/kM5/s/vOngN7TmU2/TG3N"
  "JpEU33WGWat/ikWZfw150fguueZHPbtcinGydfuV2rNGPJ48IuUXf+xGoCohnOdt"
  "YQgaS9n7jfO8tFs+CQIDAQAB")

You should add a 'TXT' type DNS record. After you added this in DNS, type this command to verify it:

amavisd testkeys

TESTING: dkim._domainkey.example.com      => pass

If it shows 'pass', it works.

Share this page:

14 Comment(s)