From owner-freebsd-questions@FreeBSD.ORG Thu Apr 8 14:57:26 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD0DF1065679 for ; Thu, 8 Apr 2010 14:57:26 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from mail-gx0-f211.google.com (mail-gx0-f211.google.com [209.85.217.211]) by mx1.freebsd.org (Postfix) with ESMTP id 8A7BB8FC14 for ; Thu, 8 Apr 2010 14:57:26 +0000 (UTC) Received: by gxk3 with SMTP id 3so1185558gxk.13 for ; Thu, 08 Apr 2010 07:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=qwXwQ6VcuXOW7uW1cJbntGTo1iQ/yFk95QnzAifxSUU=; b=EUWBHrqRjFxi6lZnzL1ViMN0RiWvqq9txnpzmy93uQWvxLjtWoP//xaCMnXe8HrfDW LInwqbTwmtyHFvTqbSclOI8+7kzMdA6LoKE+t/8EhVuSD2N2H1BrroRe0j/psvYcWEo8 qiSQRxCL7P2aZFdeATsVe0TJeVWXYxxWcn+Hw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hRUdTPRpy7ILiLPozTLaGoS4BcIAPBpt+ABX9guw1RSAX5PEgvXYr6PVX/IL+6o+4W zNFeUVlYB59HxdKyKn1OQ+DxuzeOvyEgFYRoxgHho2B/+2oAZE+mtoZLmIEigzTd2gLU YSSDgWC0CpQ6oAIVJbnMN3xBjH7ZAoyQUXpUU= MIME-Version: 1.0 Received: by 10.150.229.15 with HTTP; Thu, 8 Apr 2010 07:29:11 -0700 (PDT) Date: Thu, 8 Apr 2010 07:29:11 -0700 Received: by 10.150.160.16 with SMTP id i16mr281530ybe.172.1270736951969; Thu, 08 Apr 2010 07:29:11 -0700 (PDT) Message-ID: From: perikillo To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD 8: Postfix policyd-weight not working!!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2010 14:57:26 -0000 Hi people. I'm working in my first spam gateway, using Postfix + policyd-weight. I have 2 jails for this, the jail-A is the mail server, where the mailboxes exist, they are on each user home directory: /home/user-1 /home/user-2 /home/user-3 ... /home/user-N This jail-A have samba+ldap=PDC, nss_ldap+pam_ldap working + dovecot+postfix working to. id test uid=10003(test) gid=513(Domain Users) groups=513(Domain Users) id root uid=0(root) gid=0(wheel) groups=0(wheel),5(operator),512(Domain Admins) I can add users without a issue using smbldap-tools. I have test dovecot+postfix and I can send emails with that jail. Now I want to setup my spam gateway, is another jail called jail-B, I have setup nss_ldap+pam_ldap to contact my PDC(jail-A) and is working: id user1 uid=10002(user1) gid=513(Domain Users) groups=513(Domain Users) id test uid=10003(test) gid=513(Domain Users) groups=513(Domain Users) Now, the part is the one is not working is postfix+ policyd-weight. Went I test with other machine in the network using telnet, for some reason once postfix accept the mail wants to send the email to the outside not internally. I have setup transport to send the email jail-A but I don't see any task doing this, check: Apr 8 07:02:01 filtro postfix/qmgr[6723]: 97002BB47C2: from=, size=409, nrcpt=1 (queue active) Apr 8 07:02:04 filtro postfix/smtpd[6727]: connect from filtro.X.org [192.168.49.7] Apr 8 07:02:31 filtro postfix/smtp[6725]: connect to X.org[X.Y.Z.W]:25: Operation timed out Apr 8 07:02:31 filtro postfix/smtp[6725]: 97002BB47C2: to=, relay=none, delay=869, delays=839/0.03/30/0, dsn=4.4.1, status=deferred (connect to X.org[X.Y.Z.W]:25: Operation timed out) Apr 8 07:02:45 filtro postfix/smtpd[6727]: 11699BB537C: client=X.dyndns.org [192.168.49.7] Apr 8 07:02:50 filtro postfix/cleanup[6731]: 11699BB537C: message-id=<20100408070245.11699BB537C@X.org> Apr 8 07:02:50 filtro postfix/qmgr[6723]: 11699BB537C: from=, size=399, nrcpt=1 (queue active) Apr 8 07:02:51 filtro postfix/smtpd[6727]: disconnect from filtro.X.org [192.168.49.7] Apr 8 07:03:20 filtro postfix/smtp[6725]: connect to X.org[X.Y.Z.W]:25: Operation timed out Apr 8 07:03:20 filtro postfix/smtp[6725]: 11699BB537C: to=, relay=none, delay=45, delays=15/0/30/0, dsn=4.4.1, status=deferred (connect to X.org[X.Y.Z.W]:25: Operation timed out) Apr 8 07:10:00 filtro postfix/sendmail[6763]: fatal: root(0): No recipient addresses found in message header X.Y.Z.W --> Public address. My postfix settings are this: alias_maps = hash:/etc/aliases command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = /usr/local/share/doc/postfix inet_interfaces = all local_destination_concurrency_limit = 2 mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man mydomain = X.org myhostname = filtro.X.org myorigin = $mydomain newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/local/share/doc/postfix relay_domains = $transport_maps sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtpd_delay_reject = yes smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient, reject_invalid_helo_hostname, check_policy_service inet:[192.168.49.7]:12525 soft_bounce = no transport_maps = hash:/usr/local/etc/postfix/transport unknown_local_recipient_reject_code = 550 Now, my transport file is: nis.X.org smtp:[192.168.49.6] ----->jail-A Is created: transport.db Another think, in the log I don't see went is touching "policyd-weight: 12525" or this is just for the outside connections? Is my first spam server, if u see something wrong please let me know, I will appreciated, thanks all for your time!!!