LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix + pop-before-smtp problem (https://www.linuxquestions.org/questions/linux-software-2/postfix-pop-before-smtp-problem-46149/)

Kostko 02-19-2003 10:36 AM

Postfix + pop-before-smtp problem
 
I have Postfix installed and configured and it is working fine. I installed pop-before-smtp perl script (http://popbsmtp.sourceforge.net).

Well, clients from external IP addresses can not send mail to external e-mail addresses (Relay access denied). Pop-before-smtp script is working fine, because i ran it in debug mode and it showed up fine. One thing is that when i do postmap -q XXX.XXX.XXX.XXX hash:/etc/postfix/pop-before-smtp in says:
Quote:

postmap: fatal: open database /etc/postfix/pop-before-smtp.db: Unknown error 4294936306
So, what must i change in my config to make it working ?

/etc/postfix/main.cf:
Code:

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

# 5mb message size limit
message_size_limit = 5242880

smtpd_banner = $myhostname ESMTP $mail_name (SMTP Server)
setgid_group = postdrop
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = mail.domain.net
alias_maps = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
        domain.net,
        icarus,
        localhost.localdomain,
        localhost, 
        www.domain.net,
        ftp.domain.net
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.0/16
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
content_filter = smtp-amavis:[127.0.0.1]:10024
maps_rbl_domains =
        relays.ordb.org,
        inputs.relays.osirusoft.com,
        dialups.relays.osirusoft.com,
        proxies.relays.monkeys.com,
        opm.blitzed.org,
        blackhole.mail-abuse.org
smtpd_helo_required = yes
smtpd_helo_restrictions =
        permit_mynetworks,
        reject_invalid_hostname,
        reject_maps_rbl
smtpd_sender_restrictions =
        reject_unauth_pipelining,
        reject_unknown_sender_domain,
        reject_non_fqdn_sender,
        check_sender_access hash:/etc/postfix/access
smptd_recipient_restrictions =
        permit_mynetworks,
        reject_non_fqdn_recipient,
        check_client_access hash:/etc/postfix/pop-before-smtp,
        check_relay_domains

:confused:

Kostko 02-19-2003 10:52 AM

what a stupid mistake i did :D it was written "smptd_recipient_restrictions" instead of "smtpd_recipient_restrictions". it works fine now :p

Kostko 02-19-2003 11:01 AM

or maybee it does not. that wierd database error is now present in postfix logs (as if the database format is incorrect) ? it works fine if i use postmap to generate the DB file from a txt file, but it just can't read the database that pop-before-smtp generates.

Kostko 02-19-2003 12:46 PM

seems that i have to answer myself (again) :) so, the problem was that Perl used an old Berkeley DB lib (2.x), but Postfix used the 3 version. So i installed the new berkeley db and then recompiled the perl module BerkeleyDB. now the problem has been (finally) solved. :D


All times are GMT -5. The time now is 03:59 PM.