LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2003, 11:36 AM   #1
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Rep: Reputation: 15
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
 
Old 02-19-2003, 11:52 AM   #2
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
what a stupid mistake i did it was written "smptd_recipient_restrictions" instead of "smtpd_recipient_restrictions". it works fine now
 
Old 02-19-2003, 12:01 PM   #3
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
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.
 
Old 02-19-2003, 01:46 PM   #4
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pop-before-smtp with dovecot problem kmoffat Debian 0 11-12-2005 05:22 PM
postfix smtp problem(Urgent!!!!) efang Linux - General 2 10-12-2005 09:08 PM
Postfix or POP/SMTP jmirles Linux - Networking 2 12-16-2003 02:16 PM
problem with pop-before-smtp ollio Linux - Software 2 08-24-2003 09:12 AM
Postfix change smtp problem kelper Linux - Software 0 08-02-2003 04:51 AM


All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration