Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Configure Recipient Restrictions in Postfix Post 302402289 by wbdevilliers on Tuesday 9th of March 2010 10:35:57 AM
Old 03-09-2010
Configure Recipient Restrictions in Postfix

Hi all

We need to block our users sending emails to specific email addresses. At the moment, recipient restrictions is not enabled in our Postfix relay server so all messages submitted from our Exchange server are accepted and relayed.

See entries in our main.cf file:

Code:
 
### Recipient restrictions. 
#smtpd_recipient_restrictions =
#       check_recipient_access hash:/etc/postfix/denied_recipients
#       permit_mynetworks
#       check_recipient_testsend hash:/etc/postfix/testsend
#       reject_unauth_destination
#       reject_unknown_recipient_domain
#       reject_unverified_recipient

Which lines do I need to enable here, in what order, to tell Postfix that if it receives an email, first check if the recipient/s in are not in a blocked list, if not pass on.

Thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unknown recipient when using metasend

Hi, We use metasend to send e-mail from our app. This works fine with most kinds of mail, for example plain text, HTML with images and mail with attachments. But we still have one problem: If the to-address is misspelled, then still everything seems to be fine. We don't get any message back... (4 Replies)
Discussion started by: sjohnsen
4 Replies

2. UNIX for Dummies Questions & Answers

sendmail recipient issue

I can send external emails from one of my unix boxes but can no longer send internal emails, i have used mailx -v to see what's going on and it seems there is a problem with the RCPT TO part of the log It seems to add name@nsmail1.mydmn.gov.uk When it should be just name@mydmn.gov.uk The... (1 Reply)
Discussion started by: supadid
1 Replies

3. UNIX for Dummies Questions & Answers

mailx recipient restriction

maybe a simple question, but i've looked around and not been able to find anything. is there a restriction on how many recipients can be used in a single mailx command? whether it's a numeric restriction or a size restriction (like 256k for the whole recipient parameter). thanks a lot. (6 Replies)
Discussion started by: chris32680
6 Replies

4. IP Networking

postfix - reinject mail to postfix from hold queue directory

hi all. Am using smtpd_recipient_restrictions & check_recipient_access in postfix. The hash file looks like this: emailaddress1 HOLD emailaddress2 HOLD The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies

5. Shell Programming and Scripting

Mailx Recipient and Name Script

Hi To All, I have a file with email addresses, most of which have names associated with them, it looks like this: http://img230.imageshack.us/img230/8255/94731317.th.jpg I am trying to come up with a script to use mailx (or anything else really) to send an email to... (4 Replies)
Discussion started by: slicker
4 Replies

6. UNIX for Dummies Questions & Answers

Please help with Postfix config issue - How to allow remote Exchange server to relay to my postfix

Hi guys One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered. What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

7. UNIX for Dummies Questions & Answers

Configure Cyrus SASL NTLM Plugin with Postfix

Hello I hope somebody can help with this. I have a shell, that in case of failure, sends an email (relaying through an Exchange Server). This Exchange server only offers NTLM authentication. 250-AUTH NTLM This is the configuration I have: Postfix 2.1.1 as client. Cyrus-SASL... (1 Reply)
Discussion started by: viktor1985
1 Replies

8. Shell Programming and Scripting

Configure Cyrus SASL NTLM Plugin with Postfix

Hello I hope somebody can help with this. I have a shell, that in case of failure, sends an email (relaying through an Exchange Server). This Exchange server only offers NTLM authentication. 250-AUTH NTLM This is the configuration I have: Postfix 2.1.1 as client. Cyrus-SASL... (1 Reply)
Discussion started by: viktor1985
1 Replies

9. Linux

Configure Postfix to relay to Exchange Server with NTLM authentication

Hello I have a shell script, which should send email, if any error occurred. This script is running in Red Hat Linux 4.6, and want to configure postfix so it can relay to an Exchange Server. The Authorization method of Exchange server, I guess is: 250-AUTH NTLM. So I have: Server A ( Red... (1 Reply)
Discussion started by: viktor1985
1 Replies

10. UNIX and Linux Applications

Postfix: Active Directory and postfix alias

I have a mailserver with postfix i want to alias all mail for administrator@domain.fqdn to root@domain.fqdn I have the aliases configured,and i did newliases but doesn't work. How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
2 Replies
Postfix::Parse::Mailq(3pm)				User Contributed Perl Documentation				Postfix::Parse::Mailq(3pm)

NAME
Postfix::Parse::Mailq - parse the output of the postfix mailq command VERSION
version 1.001 SYNOPSIS
use Postfix::Parse::Mailq; my $mailq_output = `mailq`; my $entries = Postfix::Parse::Mailq->read_string($mailq_output); my $bytes = 0; for my $entry (@$entries) { next unless grep { /@aol.com$/ } @{ $entry->{remaining_rcpts} }; $bytes += $entry->{size}; } print "$bytes bytes remain to send to AOL destinations "; WARNING
This code is really rough and the interface will change. Entries will be objects. There will be some more methods. Still, the basics are likely to keep working, or keep pretty close to what you see here now. METHODS
read_file read_handle read_string my $entries = Postfix::Parse::Mailq->read_string($string, \%arg); This methods read the output of postfix's mailq from a file (by name), a filehandle, or a string, respectively. They return an arrayref of hashrefs, each hashref representing one entry in the queue as reported by mailq. Valid arguments are: spool - a hashref of { queue_id -> spool_name } pairs if given, this will be used to attempt to indicate in which spool messages currently are; it is not entirely reliable (race!) parse_block my $entry = Mailq->parse_block(@lines); Given all the lines in a single entry's block of lines in mailq output, this returns data about the entry. AUTHOR
Ricardo SIGNES <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2008 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as perl itself. perl v5.10.1 2008-10-23 Postfix::Parse::Mailq(3pm)
All times are GMT -4. The time now is 08:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy