If this is not solved yet. Feel free to create an issue, this would be contrib/config.
Posts by theemstra
-
-
Tested on Debian Jessie with latest 1.3.x git. The DNS seems good to me.
DNS Zones
Untouched zoneCode- $ORIGIN .$TTL 10800 ; 3 hourstestforimscp.test IN SOA ns1.testforimscp.test. hostmaster.testforimscp.test. ( 2016081600 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 1209600 ; expire (2 weeks) 3600 ; minimum (1 hour) ) NS ns1.testforimscp.test. A 51.254.108.153 MX 10 mail.testforimscp.test. TXT "v=spf1 a mx -all"$ORIGIN testforimscp.test.ftp A 51.254.108.153imap A 51.254.108.153mail A 51.254.108.153ns1 A 51.254.108.153pop A 51.254.108.153pop3 A 51.254.108.153relay A 51.254.108.153smtp A 51.254.108.153www CNAME testforimscp.test.
After enabling ext. mail feature
Code- $ORIGIN .$TTL 10800 ; 3 hourstestforimscp.test IN SOA ns1.testforimscp.test. hostmaster.testforimscp.test. ( 2016081601 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 1209600 ; expire (2 weeks) 3600 ; minimum (1 hour) ) NS ns1.testforimscp.test. A 51.254.108.153$ORIGIN testforimscp.test.ftp A 51.254.108.153ns1 A 51.254.108.153www CNAME testforimscp.test.
After adding some MXCode- $ORIGIN .$TTL 10800 ; 3 hourstestforimscp.test IN SOA ns1.testforimscp.test. hostmaster.testforimscp.test. ( 2016081602 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 1209600 ; expire (2 weeks) 3600 ; minimum (1 hour) ) NS ns1.testforimscp.test. A 51.254.108.153$TTL 3600 ; 1 hour MX 10 testmx.forimscp.test.$ORIGIN testforimscp.test.$TTL 10800 ; 3 hoursftp A 51.254.108.153ns1 A 51.254.108.153www CNAME testforimscp.test.
Testing
Now let's test. First, with a bogus MX host.
Code: Logfile /var/log/mail.log after sending email to bogus host- Aug 16 11:51:56 amber postfix/pickup[4760]: 018D721A37: uid=0 from=<root>Aug 16 11:51:56 amber postfix/cleanup[28594]: 018D721A37: message-id=<20160816095156.018D721A37@amber.pl2.nl>Aug 16 11:51:56 amber postfix/qmgr[28442]: 018D721A37: from=<root@amber.pl2.nl>, size=298, nrcpt=1 (queue active)Aug 16 11:51:56 amber postfix/smtp[28596]: warning: no MX host for testforimscp.test has a valid address recordAug 16 11:51:56 amber postfix/smtp[28596]: 018D721A37: to=<test@testforimscp.test>, relay=none, delay=0.07, delays=0.06/0.01/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=testmx.forimscp.test type=A: Host not found)Aug 16 11:51:56 amber postfix/cleanup[28594]: 10B09223E7: message-id=<20160816095156.10B09223E7@amber.pl2.nl>Aug 16 11:51:56 amber postfix/bounce[28597]: 018D721A37: sender non-delivery notification: 10B09223E7Aug 16 11:51:56 amber postfix/qmgr[28442]: 10B09223E7: from=<>, size=2155, nrcpt=1 (queue active)Aug 16 11:51:56 amber postfix/qmgr[28442]: 018D721A37: removedAug 16 11:51:56 amber postfix/cleanup[28594]: 175DA21A37: message-id=<20160816095156.10B09223E7@amber.pl2.nl>Aug 16 11:51:56 amber postfix/qmgr[28442]: 175DA21A37: from=<>, size=2281, nrcpt=1 (queue active)Aug 16 11:51:56 amber postfix/local[28598]: 10B09223E7: to=<root@amber.pl2.nl>, relay=local, delay=0.03, delays=0/0.03/0/0, dsn=2.0.0, status=sent (forwarded as 175DA21A37)Aug 16 11:51:56 amber postfix/qmgr[28442]: 10B09223E7: removedAug 16 11:51:56 amber postfix/smtp[28599]: 175DA21A37: to=<thom@xsbyte.com>, orig_to=<root@amber.pl2.nl>, relay=aspmx.l.google.com[74.125.195.26]:25, delay=0.31, delays=0/0.01/0.11/0.19, dsn=2.0.0, status=sent (250 2.0.0 OK 1471341115 q126si19927027wme.10 - gsmtp)Aug 16 11:51:56 amber postfix/qmgr[28442]: 175DA21A37: removed
Now let's test to a real (working) host, please note that the domain is not configured on the remote host. So I expect a reject from the remote server, rather than a reject from the local machine.Code: Logfile /var/log/mail.log after sending mail to working mailserver- Aug 16 11:53:45 amber postfix/pickup[4760]: 20240223E6: uid=0 from=<root>
- Aug 16 11:53:45 amber postfix/cleanup[28691]: 20240223E6: message-id=<20160816095345.20240223E6@amber.pl2.nl>
- Aug 16 11:53:45 amber postfix/qmgr[28442]: 20240223E6: from=<root@amber.pl2.nl>, size=291, nrcpt=1 (queue active)
- Aug 16 11:53:51 amber postfix/smtp[28693]: 20240223E6: to=<test@testforimscp.test>, relay=joanke.pl2.nl[178.32.214.92]:25, delay=6.1, delays=0.02/0.01/5.9/0.18, dsn=4.1.2, status=deferred (host joanke.pl2.nl[178.32.214.92] said: 450 4.1.2 <test@testforimscp.test>: Recipient address rejected: Domain not found (in reply to RCPT TO command))
Conclusion, this feature works as expected on my test run.
-
Hello @AlpineSwiss
The status on this topic says "To be investigated", which means the maintainer of the plugin will look into it when he has time.
You can also report this in our issue tracker if you wish, https://youtrack.i-mscp.net/Please don't ask about status, the maintainer will report here when he has news. If in another month there's no reply, then you can (of course) ask for status.
People do this voluntary, so don't give them a hard time. -
Please post relevant info:
i-MSCP version
OS Distro + version
Relevant logs (/var/log/mail.log, or if it doesn't show anything interesting /var/log/syslog) -
Hi!
You did not point the NS of the server to your server, did you?
If you don't do this, you have to manually add DNS-records from your host to your server for every subdomain/vhost or add a wildcard or find another solution.
-
-
Please provide more info: Reporting rules - Reminder
You must give us the following information:
Quote from nuxwin- The i-MSCP server implementation in use for the concerned service (for instance: ITK, Fcgid, PHP-FPM, Proftpd, Vsftpd ...)
- The exact steps to reproduce the problem
During the moment that this problem happens, please also send us (here or in pm) the results of:
netstat -antp | grep postfix
/etc/init.d/postfix status
cat /var/log/mail.logIf you still have the problem. Open new issue with required info.
-
Hi AlpineSwiss,
Yes this is possible. Just make sure you read the applicable Errdata's:
https://github.com/i-MSCP/imsc….3.x/docs/1.2.x_errata.md
https://github.com/i-MSCP/imsc….3.x/docs/1.3.x_errata.mdMaybe @Nuxwin has some tips for updating from older releases.
-
Hi,
There's a bug in 1.3.0 that has been solved in 1.3.x that could cause redirects when using HSTS.
-
Please follow Reporting rules - Reminder
Provide ALL information that is asked of you.From which logfile is that line?
Also, please provide relevant logfiles, such as the PHP FPM logfile php5-fpm.log and the pool logfiles for your domain(s).
Please also give us the result of "stat /var/www/virtual/path/to/index.php"
Also please give us the result of service php5-fpm status