Page 1 of 2

QMAIL - Emails are sent from the server IP, not domain IP

Posted: Wed Apr 02, 2014 12:01 pm
by octet
Hi guys,

Is there any easier solution to this:

http://kb.parallels.com/en/111818

https://qmail.jms1.net/patches/combined-details.shtml

I'd like to stick to the Qmail rather than switching to Postfix :)

Running Plesk 11.0.9, psa-qmail-1.03-cos6.build110120606.19.x86_64 and qmail-scanner-2.10-10.el6.art.x86_64


Thanks!

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Wed Apr 02, 2014 1:54 pm
by faris
In a word, no. The qmail implementation in Plesk is basic and doesn't allow the IP to match the sending domain's IP. It is always the server's first configured IP. You can change this with some routing things, but it is a permanent change, not a per-domain change.

We are all going to have to go Postfix sooner rather than later, unfortunately. It is still supported in Plesk 12, which surprises me, but if you want all the bells and whistles you have to use Postfix :-(

I do like qmail but Postfix seems to be the way of the future with Plesk.

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Wed Apr 02, 2014 2:03 pm
by octet
But I hate Postfix! :lol:

How about the Spamassassin and Clamav, will they work with Postfix like they do with Qmail through qmail-scanner?

Oh, I so do not want to change to Postfix :lol:

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Wed Apr 02, 2014 4:06 pm
by spaceout
I recently converted about 200 domains over to Postfix in Plesk 11.5...so far, I haven't had a single problem with it. Spamassassin and Clamav both work fine. I also installed "clapf" which is essentially like qmail-scanner for Postfix and that also appears to be working fine.

One thing to keep in mind is that I don't think Postfix allows "short names" to log in like Qmail does, so if you have clients using short names you would need to notify all of them about the change.

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Wed Apr 02, 2014 5:28 pm
by scott
Yeah clapf is in the atomic repo, it adds queue type support for spamassassin and clamav much like qmail-scanner does.

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Wed Apr 02, 2014 6:09 pm
by faris
yea, we're just missing Spamdyke+Haggy's SCP GUI really.

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Fri Apr 04, 2014 5:00 am
by biggles
+1 for pamdyke+Haggy's SCP GUI

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Fri Apr 04, 2014 7:56 am
by octet
Just switched to Postfix, dealing with configs now.

Wanted to install clapf, getting these errors:

[root@alien ~]# yum install clapf
Loaded plugins: fastestmirror, priorities, upgrade-helper
Loading mirror speeds from cached hostfile
* asl-4.0: www6.atomicorp.com
* atomic: mir01.syntis.net
* tortix: www6.atomicorp.com
* tortix-kernel: www6.atomicorp.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package clapf.x86_64 0:0.4.7.4-2.el6.art will be installed
--> Processing Dependency: dcc for package: clapf-0.4.7.4-2.el6.art.x86_64
--> Processing Dependency: razor-agents for package: clapf-0.4.7.4-2.el6.art.x86_64
--> Processing Dependency: pyzor for package: clapf-0.4.7.4-2.el6.art.x86_64
--> Processing Dependency: rrdtool for package: clapf-0.4.7.4-2.el6.art.x86_64
--> Running transaction check
---> Package clapf.x86_64 0:0.4.7.4-2.el6.art will be installed
--> Processing Dependency: rrdtool for package: clapf-0.4.7.4-2.el6.art.x86_64
---> Package dcc.x86_64 0:1.3.152-3.el6.art will be installed
--> Processing Dependency: libmilter.so.1.0()(64bit) for package: dcc-1.3.152-3.el6.art.x86_64
---> Package pyzor.noarch 0:0.5.0-4.el6.art will be installed
---> Package razor-agents.x86_64 0:2.85-1.el6.art will be installed
--> Finished Dependency Resolution
Error: Package: dcc-1.3.152-3.el6.art.x86_64 (atomic)
Requires: libmilter.so.1.0()(64bit)
Error: Package: clapf-0.4.7.4-2.el6.art.x86_64 (atomic)
Requires: rrdtool
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@alien ~]#

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Fri Apr 04, 2014 8:28 am
by octet
Nevermind me, I'm silly, had some repos disabled :D

But I now get this error:

Installed:
clapf.x86_64 0:0.4.7.4-2.el6.art

Dependency Installed:
dcc.x86_64 0:1.3.152-3.el6.art sendmail-milter.x86_64 0:8.14.4-8.el6

Complete!
[root@alien ~]# /etc/init.d/clapf start
Starting Clapf AntiVirus/AntiSpam Daemon: clapf: error while loading shared libraries: libgslcblas.so.0: cannot open shared object file: No such file or directory
[FAILED]

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Fri Apr 04, 2014 8:37 am
by octet
==========================================================================================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================================================================================
Installing:
gsl x86_64 1.13-1.el6 base 787 k
gsl-devel x86_64 1.13-1.el6 base 437 k
gsl-static x86_64 1.13-1.el6 base 835 k

Transaction Summary
==========================================================================================================================================================================================================================
Install 3 Package(s)

Total download size: 2.0 M
Installed size: 7.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): gsl-1.13-1.el6.x86_64.rpm | 787 kB 00:00
(2/3): gsl-devel-1.13-1.el6.x86_64.rpm | 437 kB 00:00
(3/3): gsl-static-1.13-1.el6.x86_64.rpm | 835 kB 00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 7.3 MB/s | 2.0 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gsl-1.13-1.el6.x86_64 1/3
Installing : gsl-devel-1.13-1.el6.x86_64 2/3
Installing : gsl-static-1.13-1.el6.x86_64 3/3
Verifying : gsl-1.13-1.el6.x86_64 1/3
Verifying : gsl-static-1.13-1.el6.x86_64 2/3
Verifying : gsl-devel-1.13-1.el6.x86_64 3/3

Installed:
gsl.x86_64 0:1.13-1.el6 gsl-devel.x86_64 0:1.13-1.el6 gsl-static.x86_64 0:1.13-1.el6

Complete!
[root@alien ~]# /etc/init.d/clapf start
Starting Clapf AntiVirus/AntiSpam Daemon: [ OK ]
[root@alien ~]#

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Fri Apr 04, 2014 12:37 pm
by scott
So this package definitely needs polishing :P Those dependencies should have been picked up at build time, so something is wrong on my side with those.

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Fri Apr 04, 2014 2:56 pm
by octet
Good stuff, Scott!

Now trying to set up DKIM and reading these two articles:

http://www.howtoforge.com/set-up-dkim-d ... g-opendkim

http://blog.matoski.com/articles/spf-dk ... sk-debian/

We need opendkim packages in the art repos :D

and some more about tuning the Postfix:

https://www.ispcolohost.com/2013/07/20/ ... -plesk-10/

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Fri Apr 04, 2014 6:59 pm
by scott
Souds good, I added that to the queue

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Tue Apr 08, 2014 10:36 am
by scott
Opendkim is now available in the repo

Re: QMAIL - Emails are sent from the server IP, not domain I

Posted: Wed Apr 09, 2014 4:30 am
by octet
Thanks Scott, just tried it:


[root@alien ~]# yum install opendkim
Loaded plugins: fastestmirror, priorities, upgrade-helper
Loading mirror speeds from cached hostfile
* asl-4.0: www6.atomicorp.com
* atomic: mir01.syntis.net
* tortix: www6.atomicorp.com
* tortix-kernel: www6.atomicorp.com
230 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package opendkim.x86_64 0:2.9.0-2.el6.art will be installed
--> Processing Dependency: libopendkim = 2.9.0-2.el6.art for package: opendkim-2.9.0-2.el6.art.x86_64
--> Processing Dependency: libbsd.so.0(LIBBSD_0.0)(64bit) for package: opendkim-2.9.0-2.el6.art.x86_64
--> Processing Dependency: libbsd.so.0()(64bit) for package: opendkim-2.9.0-2.el6.art.x86_64
--> Processing Dependency: libunbound.so.2()(64bit) for package: opendkim-2.9.0-2.el6.art.x86_64
--> Processing Dependency: libopendkim.so.9()(64bit) for package: opendkim-2.9.0-2.el6.art.x86_64
--> Finished Dependency Resolution
Error: Package: opendkim-2.9.0-2.el6.art.x86_64 (atomic)
Requires: libopendkim.so.9()(64bit)
Error: Package: opendkim-2.9.0-2.el6.art.x86_64 (atomic)
Requires: libopendkim = 2.9.0-2.el6.art
Error: Package: opendkim-2.9.0-2.el6.art.x86_64 (atomic)
Requires: libunbound.so.2()(64bit)
Error: Package: opendkim-2.9.0-2.el6.art.x86_64 (atomic)
Requires: libbsd.so.0()(64bit)
Error: Package: opendkim-2.9.0-2.el6.art.x86_64 (atomic)
Requires: libbsd.so.0(LIBBSD_0.0)(64bit)
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
kernel-debug-2.6.32-431.11.2.el6.x86_64 has missing requires of dracut-kernel >= ('0', '002', '18.git413bcf78')