Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th June 2006, 17:53
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default Postfix check_recipient_access?

Scenario:

Spam Filter Debian Sarge 3.1/Postfix2.1.5/Mailscanner(Mail Relay Gateway) ----> Exchange 2000 Server

My Exchange 2000 server does not have the ability to know whether to reject or accept mails for users that no longer exists, therefore creating a ton of undeliverable messages in its queue.

I came accross the Postfix check_recipient_access feature, which uses a file to store user email information that Postfix can use to decide whether to accept of reject emails. However, I don't know how to set this up. I need the spam filter to have to ability to reject mails for certain users that no longer exists.

My main goal is to cut down on the amount of undeliverable mails in my Exchange 2000 queue.

Also, is there a way to create a local user account on the spam filter that can be a catchall mailbox? I also would need pop3 access into this mail box to read emails if my Exchange box goes down. I need to create a failsafe if the Exchange box should puke, which I think it will....

Any help would be greatly appreciated. Thanks.

UPDATE:
I've successfully set up a Postfix access file that stores email addresses to reject. Therefore, I only need help to create the catchall email account.
Thanks.

Last edited by Rocky; 7th June 2006 at 20:05.
Reply With Quote
Sponsored Links
  #2  
Old 7th June 2006, 20:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Does your Postfix use system users or virtual users?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 7th June 2006, 22:59
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

It's just a mail filter that relays all the mails to my Exchange box. In the Postfix configuration, there's an option that allows you to define a user to get a bcc of all the mails. I chose the local user mail. I used webmin and logged into the mailbox for user mail and noticed that it was working. I was able to get the system to send a bcc of all emails to a mail-enable user named mail on spam filter.

How would I be able to access this account using pop3 or any other method? I don't want end users to log into this account using webmin.
Reply With Quote
  #4  
Old 8th June 2006, 12:46
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
Default

Is this a maildir or mbox account?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 8th June 2006, 14:22
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

How would I be able to tell if its a maildir or mbox account?
Reply With Quote
  #6  
Old 8th June 2006, 14:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

What's the output of
Code:
postconf -n |grep home_mailbox
and
Code:
postconf -d |grep home_mailbox
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 8th June 2006, 15:20
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

postconf -n |grep mail:
always_bcc = mail
mailbox_size_limit = 0
myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name Piratefish

postconf -d |grep mail:
alias_maps = hash:/etc/aliases, nis:mail.aliases
allow_mail_to_commands = alias, forward
allow_mail_to_files = alias, forward
home_mailbox =
lmtp_mail_timeout = 300s
mail_name = Postfix
mail_owner = postfix
mail_release_date = 20040915
mail_spool_directory = /var/mail
mail_version = 2.1.5
mailbox_command =
mailbox_command_maps =
mailbox_delivery_lock = fcntl, dotlock
mailbox_size_limit = 51200000
mailbox_transport =
mailq_path = /usr/bin/mailq
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
sendmail_path = /usr/sbin/sendmail
smtp_mail_timeout = 300s
smtpd_banner = $myhostname ESMTP $mail_name
sun_mailtool_compatibility = no
syslog_facility = mail
unknown_virtual_mailbox_reject_code = 550
virtual_mailbox_base =
virtual_mailbox_domains = $virtual_mailbox_maps
virtual_mailbox_limit = 51200000
virtual_mailbox_lock = fcntl
virtual_mailbox_maps =

I was thinking that maybe I should create an additional mail user using the mbox format, instead of using an existing one. This way, I won't interfere with the system users and I can use the newly created user as the catchall account also. But I don't know how to do this. Also, I would need IMAP access to the new mailbox. Any suggestions?

Last edited by Rocky; 8th June 2006 at 15:22.
Reply With Quote
  #8  
Old 8th June 2006, 15:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

You posted the wrong output. I asked for
Code:
postconf -n |grep home_mailbox
and
Code:
postconf -d |grep home_mailbox
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 8th June 2006, 15:57
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

postconf -n |grep home_mailbox:

postconf -d |grep home_mailbox
home_mailbox =

The first string didn't return anything.

Update:
I've learnt how to create mail users through the webmin panel on the bebian sarge system. So now i only need to get the mailbox in mbox format and also to install an IMAP package.

Last edited by Rocky; 8th June 2006 at 22:08.
Reply With Quote
  #10  
Old 9th June 2006, 12:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
 
Default

You're already using mbox.

Quote:
and also to install an IMAP package.
Run
Code:
apt-get install ipopd-ssl uw-imapd-ssl
Then create the file /etc/c-client.cf with the following contents:

Code:
I accept the risk
set disable-plaintext 0
and restart inetd:

Code:
/etc/init.d/inetd restart
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
IMAP question - Moving servers and mail. Brenton Installation/Configuration 11 14th May 2010 14:38
Postfix smtpd_banner lehadi Server Operation 7 15th May 2006 17:14
After Debian postfix / currior install, can not get external mail skdb Installation/Configuration 7 24th April 2006 10:06
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20


All times are GMT +2. The time now is 21:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.