PHPXmail 1.5 - DEPRECATED¶
- Package: master/make/pkgs/phpxmail/
- Steward: -
The mail to/from my hosting provider got interrupted now and then and
the support wasn't that good. Setting up a mail server using Freetz and
PHPXMail was very simple. Now I can select my own blocklists and see in
the logs what is (not) happening.
Basic setup guide¶
- To prevent disappointment: check if your internet provider allows
SMTP (port 25) traffic - Build and install Freetz with PHPXMail and
AVM-firewall-cgi- PHPXMail selects XMail and PHP
- Be prepared for the space requirements ...
- Setup Firewall (Freetz menu Packages > AVM-Firewall)
- Select port forwarding
- Forward TCP port 25 to Fritz!Box port 10025 (SMTP)
- Forward TCP port 110 to Fritz!Box port 10110 (POP3)
- Apply settings
- Reboot
-
Setup XMail (Freetz menu Packages > XMail)
- Set start type to automatic
-
Fill in a existing directory for settings & storage, for
example
-
Activate SMTP & POP3
- Activate unencrypted admin access
- Activate all logging for the time being
- Apply
- Start XMail (freetz menu Services > XMail > Start)
- Change the user name of the web interface to set XMail password
(Freetz menu Settings > webcfg > change password) - Open PHPXMail configuration site (Freetz menu Packages >
PHPXMail > here)- Login with user admin and the set web interface password
- Goto server config
- Enable DefaultSMTPGateways
- Fill in your provider's smtp server address
- Save values
- Read
this
if you need to authenticate
- Goto server domains > new domain
- Enter your domain name, for example your-domain.com
- Submit
- Goto server config
-
Enable and set CustMapsList to (see
here):
12. Create an MX record that points to the external IP of your FritzBox
1. See for example
here
for information
2. Use DynDNS or
similar if you have a dynamic IP address
3. I created an MX record with a higher priority than the existing
records, so in case of problems mail will be handled by my
hosting provider as usual
13. Setup your preferred e-mail client
1. Server: external IP of your FritzBox
2. User name: postmaster @ your-domain.com
14. Test your configuration
1. Send a test mail to postmaster @ your-domain.com (check server
logs > smtp)
2. Receive the test mail with your e-mail client (check server
logs > pop3)
3. Check for open mail relaying for example
here
15. Setup as many other domains and accounts as you like ...
-
If you want to forward e-mail:
- Goto the domain user you want to forward mail for
- Select the link user mail proc
- Enter redirect|
- Submit
It is not a bad idea to backup your XMail settings and storage
directory!
Setup SSL¶
- Build XMail with SSL support
- Login using telnet (or better SSH)
- Goto the XMail settings directory
- Create the file openssl.cnf with the example contents from
here -
Enter the following commands:
-
Answer the questions with anything you like, but use your domain
name as common name (CN) - Forward TCP port 465 to Fritz!Box port 10465 (SSMTP)
- Forward TCP port 995 to Fritz!Box port 10995 (POP3S)
- Activate the XMail options SSMTP and POP3S (note that the checkboxes
don't show up checked again before changeset
Changeset r4760) - Test by checking your e-mail with SSL (port 995) enabled