The pfSense Store

Author Topic: Postfix - antispam and relay package  (Read 85482 times)

0 Members and 1 Guest are viewing this topic.

Offline mauricioniņoavella

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #60 on: October 31, 2011, 08:37:40 am »
I'm trying to colleagues include, relay host that I may just mail forwarder to an external server with me autenticaion and generates this error if anyone can help me

postfix/smtpd[5191]: unable to dlopen /usr/local/lib/sasl2/libgssapiv2.so.2: Shared object "libgssapi.so.10" not found, required by "libgssapiv2.so.2"

thanks for the help

Offline mauricioniņoavella

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #61 on: October 31, 2011, 04:02:16 pm »
hello

marcelloc



You had confirmed that the package already endured STARTTLS and is filing this prolem please collaborate or me to do

postfix/smtpd[21954]: unable to dlopen /usr/local/lib/sasl2/libgssapiv2.so.2: Shared object "libgssapi.so.10" not found, required by "libgssapiv2.so.2"

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)
« Last Edit: October 31, 2011, 04:04:07 pm by mauricioniņoavella »

Offline ermal

  • Administrator
  • Hero Member
  • *****
  • Posts: 3365
  • Karma: +3/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #62 on: November 01, 2011, 11:41:27 am »
That's missing dependency of the package i think or missing libraries in base of pfSense.
It is not a missing compile flag of the package itself.

Just general comment here while i saw this though.

Offline mauricioniņoavella

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #63 on: November 01, 2011, 08:33:57 pm »
This is for
Forum and BSD developers pfSense
I do not understand why people who work in this great project, such as pfSense, stop the publication of a package, which is not compatible with pfSense.
Please do not degrade this great software such as pfSense without offending anyone, first of all congratulate marcelloc and Postfix antispam and relay package has problems.
But I do recommend working to improve, and we who belong to the family of pfSense, are the ones who try and give them guidelines for improving pfSense.
PfSense do not compare with other systems or software firewalls, for there is but I have reviewed (ClearOs Linux), and has a very simple setup SMTP Relay with Authentication. (relay host)
I hope this is taken into account
regards

Mauricio
« Last Edit: November 01, 2011, 08:51:40 pm by mauricioniņoavella »

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 10004
  • Karma: +5/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #64 on: November 01, 2011, 09:33:28 pm »
Quote
This is for
Forum and BSD developers pfSense
I'm not a pfsense developer, I'm a pfSense user just like you. I've decided to stop waiting for packages that do what I need and started writing features to improve them.

The first version of postfix forwarder was just a forwarder, with no options, including SASL.

I've spent many hours in postfix documentation to write a gui that helps administrators on configuring this great mail server and also looking for a better compilation to include features such as PCRE, SPF and SASL.

Quote
I do not understand why people who work in this great project, such as pfSense, stop the publication of a package, which is not compatible with pfSense.

Sorry but i did not understood your post. Postfix is compatible with pfsense.

Quote
But I do recommend working to improve, and we who belong to the family of pfSense, are the ones who try and give them guidelines for improving pfSense.
You are using a huge free open source firewall and do you really think you are doing a favor to pfSense's team? Unbelievable!

Quote
I have reviewed (ClearOs Linux), and has a very simple setup SMTP Relay with Authentication. (relay host)

What are you waiting for? Config and internal machine with it and put your mail system on.


I suggest you to read the section Helping out in pfsense website
Here is the link if you are waiting somebody to look it for you.
http://www.pfsense.org/index.php?option=com_content&task=view&id=47&Itemid=77
« Last Edit: November 01, 2011, 10:14:16 pm by marcelloc »

Offline darklogic

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #65 on: November 02, 2011, 07:37:15 am »
mauricioniņoavella

I'm not sure if I understand the nature of your e-mail either. Postfix is somthing new to pfsense. marcelloc has done a wonderful job on this package. The only thing I am struggling with is the limited documentation that explains how to configure this package with pfsense. marcelloc has help me a lot with that and I much appreciate his time and efforts to creat a package that I feel should be yet another great package that is part of the base pfsense system. As I have posted before in the past, there are many sistuation that people just need a fast processing router/firewall such as ISP or large internal networks and then there is the rest of us that need a lot more such as a UTM (Unified Threat Management System).

I personally have used ClearOS AKA ClarkConnect for years. Yes it is a great product, but it is a Server, Firewall, and Proxy UTM. You are comparing apples to oranges. I will agree that ClearOS has a great and easy to use mail forwarder feature, but it is very leaky with SPAM even with spamassasin and clamav attached to it. A few other good products I have used that have mail forwarding with filtering is Astatro, Endian, IPCop, Zentyal, Vyatta, and SME Server. So far the best non leaky SPAM forwarder/SPAM filter systems I have came across has been Endian and this new Postfix package marcelloc has made. The funny thing is that the pfsense package does not even have any spamassisin or clamav intergrated into it, and it does a better job than other projects that do. Once marcelloc gets all this added into the package, I am sure it will be one of the best. But, it is in RC1 status right now, so for the love of GOD, give the man some time and don't bite the hand that feeds.

I personaly use multiple firewalls for different uses. So far, I have came to the conclusion after years of using these top 3 products for security. Untangle hands down blows almost everyone out of the water. Astaro Home edition could be there with Untangle if they didn't limit to 50 IP's. pfsense, well this software just does everything. I have my use for it and have faith that it will become more UTM like. pfSense has been my answer to solve many problems when others could not. If pfsense had a solid foundation with everything is currently does and then made IDS/IPS, Web proxy filter, Mail Filter, WAF (Web Application Firewall), which I am supprised to see that the package has not been picked up by someone yet for updating to 2.0 version.

pfSense already has many great features, but could really dominate the market if they supported these UTM features in their base system. I believe a lot of people would agree that a basic stateful NAT firewall is not enough security these days if you have users browsing the web, let a lone if you host anything on you internal network.

marcelloc, thanks for this UTM like package
« Last Edit: November 02, 2011, 07:40:51 am by darklogic »

Offline mauricioniņoavella

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #66 on: November 02, 2011, 08:37:21 am »
marcelloc
I apologize but do not misunderstand me, only I want is to congratulate you for great work, and definiately not put in doubt, I am a lover of pfSense is best,


The idea of ​​posting in the forum is not for misunderstanding or disagreement is only because as darklogic is more than documentation,
suddenly I'm a little confused with the package does not work and you bothered sending you personal messages, but I see no light, ie how to solve the relay hosts, again, I apologize and I am hoping that this is a great package.

I apologize to you and the forum, but there are things that improve with your help and with a bit of time is the best

but reiterated that it should have done enough testing before release
with pfSense version 2.0

regards

and a thousand thanks for your charisma and collaboration
« Last Edit: November 02, 2011, 09:11:29 am by mauricioniņoavella »

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 10004
  • Karma: +5/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #67 on: November 03, 2011, 03:08:58 pm »
Darklogic,

try this setup on your postfix:

First go to on diagnostics -> edit file
type /etc/hosts in 'Save / Load from path:' then press load
WITH CAUTION, include the ip address and the wrong helo info from remote domain you want to receive email.
Code: [Select]
24.123.130.226 CNASRV.CNA.local
press save button.

Go to postfix configuration and add custom cf options:
Code: [Select]
disable_dns_lookups = yes
Save config and see what will happen with your server.
If it works, also check if /etc/hosts file keeps the info after a reboot.

I saw no options to relax  reject_unknown_client_hostname.

This is the postfix documentation for this option:
Code: [Select]
disable_dns_lookups (default: no)
Disable DNS lookups in the Postfix SMTP and LMTP clients. When disabled, hosts are looked up with the getaddrinfo() system library routine which normally also looks in /etc/hosts.

DNS lookups are enabled by default.

« Last Edit: November 03, 2011, 03:16:31 pm by marcelloc »

Offline darklogic

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #68 on: November 04, 2011, 07:07:51 am »
marcelloc,

It looks like it works. I have not had a chance to reboot yet. I will keep an eye on this and see how it pans out. Also, I like the new pfblocker you and tommyboy are working on.

Thanks for the detailed configuration info.

MDP

Offline darklogic

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #69 on: November 04, 2011, 07:29:09 am »
marcelloc,

I added a couple more into the /etc/hosts and then saved the config. For some reason it is removing the entries. They will just randomly drop off the list, but I can see where dynamic dhcp client on the internal network are getting added to this list? The only entry that is not getting removed is the example one I used and you used in your post?

Not sure what I am doing wrong. It corrected the issue with only the first manually added host and IP.

Thanks,

MDP

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 10004
  • Karma: +5/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #70 on: November 04, 2011, 07:41:09 am »
For internal clients, the best way is to include their hostnames on your local dns.

Setup your pfSense box to use your internal dns.

But, if you are using dns Forwarder on pfsense, you can also include these host info on it.

And don't forget to save postfix config after any host change.

Offline mauricioniņoavella

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #71 on: November 04, 2011, 08:35:36 am »
marcelloc

regards

what a pity to disturb, look I'm working and making changes to the cfg and Services: Postfix relay and spam, but not working.

not to do just what I want is a postfix relay host, that I may have a serviodor forwarder external mail, which is in zimbra

using a generic account with authentication and security is, with STARTTLS

as I have written before I had the problems that no longer do.

thanks
for your collaboration

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 10004
  • Karma: +5/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #72 on: November 04, 2011, 08:44:41 am »
mauricioniņoavella,

As we saw in ermal post, package cyrrus has a missing dependencie in pfsense. Its not a missing compile arg, so there is nothing I can do to Fix it.

For now, postfix Forwarder Does not has SASL option.

If you want a quick solution for that, buy some commercial support hours as ask pfsense team to Fix it.

If you google for you problem, you will find that openldap client requires cyrrus too.

good luck on your trouble shooting.
« Last Edit: November 04, 2011, 11:51:32 am by marcelloc »

Offline mauricioniņoavella

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #73 on: November 04, 2011, 02:13:09 pm »
marcelloc
then you confirm that the problem is not yours, rom problems pfSense team, then you spor angry about this that you wrote

I see you work for us.

many thanks for your collaboration

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 10004
  • Karma: +5/-0
    • View Profile
Re: NEW Postfix antispam and relay package
« Reply #74 on: November 04, 2011, 03:07:25 pm »
marcelloc
then you confirm that the problem is not yours, rom problems pfSense team, then you spor angry about this that you wrote

I see you work for us.

many thanks for your collaboration
mauricioniņoavella,

you must understand one thing.

pfsense's team released version 2.0 with no need of cyrrus-sasl library, so the problem is not with pfsense's team.

Packages are contributions and almost created and maintained by community, so when a package has a problem, the problem is not on pfsense2.0.

When somebody builds a package, all ports compilation is done by pfsense team BUT it does not means that is fully supported by them.

Pfsense is one thing, packages is another thing completely apart of base project.

if you don't like the way libraries are missing on pfsense, try installing freebsd packages on labs.


I'm not angry about anything in pfsense's project, its perfect to me.