Postfix - antispam and relay package
-
Excellent work marcelloc, This package is really coming along very nice. Seems to be working good. The only thing I noticed after doing an update, was all my configuration seetings stayed as was, but I had to re-add my domain and point it to the internal mail server for some reason?
Thanks for all your hard work.
-
hate saying when there is somthing wrong as it feels like im ungreatfull, that said here it comes lol
pkg_add -r MailScanner don't work on both x86 & x64 "Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/MailScanner.tbz: File unavailable (e.g., file not found, no access)"
if you have the "Use Third part antispam" ticked it blocks outgoing mail and the outgoing mail logs report the mail as incoming
maybe warn not to tick untill mailscanner installed or have i got it wrong and VA is installed?
sorry for not getting back sooner feel asleep been working long hours, x86 installing installing now but noticed when reinstalling a newer virsion installing and now we have 2 installs pkg_info shows
perl-5.10.1_3 Practical Extraction and Report Language
perl-5.12.4_2 Practical Extraction and Report Languagenot tested properly so take as just could be bug, think the logging is not loging incoming and out going properly as it seems to be logging the recipiant as the sender in some cases, more than likely a bounce massage but it should be from postmaster, will keep an eye on it but think its more than likely my bad and readding it wrong.
any tests I can do to help out just say and it will be done, as always respect, great work :-)
you might want to surgest in info below mynetworks to add 127.0.0.0/8 if adding custom unless you have this taken care of else where
there is 2 mynetworks_style = host in main.cf
Mince
-
Darklogic,
I've moved domains to it's own tab. That's why you needed to config again.
-
mince69meat,
I've started testing mailscanner package and it only works with perl version 5.10. So I've changed postfix perl dependencie from 5.12 to 5.10.
Remove both manually with pkg_delete and then reinstall package.
When you check mailscanner, you tell postfix to hold all messages, thats why you have no mail working.
I'm going to publish tomorrow the mailscanner-dev package until it get stable enough to a RELEASE version.
-
package version 2.3.1 is out with mailscanner integration (logs + options).
also mailscanner-dev 0.1 is out too.
I will start a new tread for it.
Just be sure to do have perl specific version perl-5.10.1_3.
Mailscanner-dev package uses freebsd 8.2 packages, so do not try it with any other perl version.
if you have any other perl version, i suggest you to uninstall it, any p5-module and maybe sqlite version prior to 3.7.4 you find with pkg_add.
After removing it, close console and try to install packages.
-
package version 2.3.2 is out with check_sender gui option.
perl dependencie is back to 5.12 for mailscanner 4.83.5 integration.
-
package version 2.3.2 is out with check_sender gui option.
perl dependencie is back to 5.12 for mailscanner 4.83.5 integration.
postfix-2.8.7,1.tbz
dose not install on either x86 or x64 :-(
shows as version 2.3.3 alsoMince
-
files.pfsense.org are offline, wait some time and try again.
-
marcelloc thank you for your great job,very userfull and helpfull package i ever used on pfsense.
any plans DKIM(opendkim) support for outgoing mails? -
Hi Marcello,
I have installed this package and it really does look very good but I haven't enabled it yet - just figuring out the configuration. A bit of background:
- I run my own mailserver for a couple of domains.
- My ISP's mailserver redirects any mail sent to me at ISPdomain.com to me at mydomain.com.
- Port 25 outbound is blocked by my ISP (fairly standard), so my mailserver must smarthost outbound emails through their mailserver. 25 inbound is open.
A couple of questions:
-
Is there any special configuration needed to allow for the smarthosting?
-
Is outbound email from my mailserver automatically subject to the same Postfix rules as email coming from my ISP or direct to my mailserver? If so, any way to bypass that?
-
I can't find a way to get entries into smtpd_helo_restrictions - e.g., reject_non_fqdn_hostname. Am I missing something?
Thanks,
Biggsy -
- Is there any special configuration needed to allow for the smarthosting?
Include this on genereal -> custom main.cf options:
relayhost = your.server.com- Is outbound email from my mailserver automatically subject to the same Postfix rules as email coming from my ISP or direct to my mailserver? If so, any way to bypass that?
configure your internal servers in Access List -> MyNetworks
- I can't find a way to get entries into smtpd_helo_restrictions - e.g., reject_non_fqdn_hostname. Am I missing something?
choose strong on Antispam -> Header verification
I also suggest enabling postscreen and all its featuresAfter configuring it, check main.cf file in view config tab
-
Thank you Marcello,
I've enabled it now and it does seem to be doing its job very well. You must have read a lot of documentation to get this going. I spent hours doing that - just trying to figure out what I should have in main.cf as a starting point.
You may have looked at this (and there are already more than enough parameters) but could I suggest a place in the GUI to enter myhostname as a means of overriding the default of using the hostname of the pfSense machine.
Thanks again,
Biggsy -
You must have read a lot of documentation to get this going. I spent hours doing that - just trying to figure out what I should have in main.cf as a starting point.
Yes I did, many many hours. I was on sendmail before :)
You may have looked at this (and there are already more than enough parameters) but could I suggest a place in the GUI to enter myhostname as a means of overriding the default of using the hostname of the pfSense machine.
I'll take a note on this, for now you can change it on genereal -> custom main.cf options
Thanks for you feedback.
-
Hi Marcelloc and everyone else!
First of all, thank you for a great package!
I just installed postfix on my pfsense 2.0 but i got some issues.
When i try to add custom valid recipients it doesn't work.
In the custom list box i add the users e-mail following the hint "user@mycompany.com"The errorlog:
postfix/postmap[37560]: warning: /usr/local/etc/postfix/relay_recipients, line 2: expected format: key whitespace value
postfix/postmap[37560]: warning: /usr/local/etc/postfix/relay_recipients, line 3: expected format: key whitespace value
postfix/postmap[37560]: warning: /usr/local/etc/postfix/relay_recipients, line 4: expected format: key whitespace value
and so on…Any ideas?
-
take a look on custom valid recipients field note:
Paste your valid recipients here, one per line. HINT user@mycompany.com OK
there is a value after each email.
the error says
expected format: key whitespace value
sokey= user@mycompany.com
value= OK -
Aha! :) misunderstood the syntax.
Thanks! -
marcelloc thank you for your great job,very userfull and helpfull package i ever used on pfsense.
any plans DKIM(opendkim) support for outgoing mails? -
Do you have any updates on SASL authentication and if/when it may be included in this great package?
I would love to migrate our existing SMTP solution over to this but the lack of authentication is the only thing stopping me.
James,
To try sasl auth you need to fix some missing lib from kerberos
ldd /usr/local/sbin/saslpasswd2
/usr/local/sbin/saslpasswd2:
libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x800647000)
libcrypto.so.6 => /lib/libcrypto.so.6 (0x800761000)
libgssapi.so.10 => not found (0x0)
libheimntlm.so.10 => not found (0x0)
libkrb5.so.10 => not found (0x0)
libhx509.so.10 => not found (0x0)
libcom_err.so.5 => /usr/lib/libcom_err.so.5 (0x8009fb000)
libasn1.so.10 => not found (0x0)
libroken.so.10 => not found (0x0)
libcrypt.so.5 => /lib/libcrypt.so.5 (0x800afd000)
libopie.so.6 => /usr/lib/libopie.so.6 (0x800c16000)
libc.so.7 => /lib/libc.so.7 (0x800d1f000)
libmd.so.5 => /lib/libmd.so.5 (0x800f5b000)The missing libs to get sasl working can be fetched from this url
http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/
and saved on /usr/local/lib/
On amd64
cd /usr/local/lib fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libasn1.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libgssapi.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libheimntlm.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libhx509.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libkrb5.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libroken.so.10
On i386
cd /usr/local/lib fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libasn1.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libgssapi.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libheimntlm.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libhx509.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libkrb5.so.10 fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libroken.so.10
after this, try to paste your sasl config com custom field at postfix configuration.
Let me know if it works :)
-
Thanks Marcello.
I'm very new to Postfix so I will have to do some reading before I actually attempt this. I'm not so sure on what I use for my authentication backend. Can you give me some pointers?
-
Thanks Marcello.
I'm very new to Postfix so I will have to do some reading before I actually attempt this. I'm not so sure on what I use for my authentication backend. Can you give me some pointers?
I did not used sals on pfsense, so I do not know the best way to implement this.
try to follow official postfix how to for cyrrus SASL.
http://www.postfix.org/SASL_README.html
I've also asked mauricioniñoavella to post his successfull cyrrus SASL config here.
att,
Marcello Coutinho