Darek M:
> On Wed, May 18, 2011 at 4:35 PM, Wietse Venema <wie...@porcupine.org> wrote:
>
> > Check your SELINUX, APPARMOR, etc. "security" settings.
> >
> > ? ? ? ?Wietse
>
> I'm running FreeBSD 8, and there isn't anything running by default
> like SELinux on Linux.  Do these permissions look ok?

File permissions have nothing to do with this.

> May 18 16:22:49 m postfix-in/smtp[7806]: 7081A1088FA:
> to=<some...@somewhere.com>, relay=none, delay=176728,
> delays=176727/0.03/1.2/0, dsn=4.4.1, status=deferred (connect to
> spam2.ihostexchange.net[66.46.182.95]:25: Permission denied)

The Postfix timed_connect() function failed, because one of the
FreeBSD system calls connect(), poll() or getsockopt() failed with
an EACCES error.

FreeBSD connect() fails with EACCES when:

     [EACCES]           An attempt is made to connect to a broadcast address
                        (obtained through the INADDR_BROADCAST constant or the
                        INADDR_NONE return value) through a socket that does
                        not provide broadcast functionality.

     [EACCES]           Search permission is denied for a component of the
                        path prefix.

     [EACCES]           Write access to the named socket is denied.

The second one is not applicable for TCP. 

As for the third one, maybe it is a packet filter error.

FreeBSD poll() and getsockopt() do not report EACCES errors,
according to the manpage.

        Wietse

Reply via email to