POSTFIX - Filter Action for senders not specified in check_sender_access


 
Thread Tools Search this Thread
Special Forums IP Networking POSTFIX - Filter Action for senders not specified in check_sender_access
# 1  
Old 07-27-2009
POSTFIX - Filter Action for senders not specified in check_sender_access

hi all.

Am using check_sender_access in main.cf to check sender email address.
i placed the senders and the action to take like this :

sender1@domain.com FILTER smtp:10025
sender2@domain.com FILTER smtp:xxxx

I want to take a default action for senders not in this list.

allother_senders FILTER smtp:xxxx

can someone plz advise how can this be achieved ?
thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris - Sendmail - Adding .com.gr in external senders e-mails

Hello Everybody ! I'm Harry from Athens Greece and i have a problem with my Sendmail 8.13.3 installed on Solaris SunOS ultra 5.10. The problem is that when someone sends to us an e-mail and his e-mail address is like : xxxx@xxxx.com, our e-mail server adds up in the senders address a .com.gr... (2 Replies)
Discussion started by: Mcasim
2 Replies

2. 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

3. Shell Programming and Scripting

multiple action!

lets explain it easy by showing the initial file and desired file: I've a file such this that contains: initial_file: 31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1 ... (1 Reply)
Discussion started by: oreka18
1 Replies

4. OS X (Apple)

Script to process winmail.dat files in apple mail from outlook senders

Does anyone know of a way to automate the "massaging" of those STUPID winmail.dat files that come to Apple Mail extensions as a result from people sending mail from outlook clients? Specifically, something that would run when you attempt to open a winmail.dat file and auto extract and open... (2 Replies)
Discussion started by: herot
2 Replies

5. Shell Programming and Scripting

.procmailrc and uudeview (put attachments from diff senders to diff folders)

Moderator, please, delete this topic (1 Reply)
Discussion started by: optik77
1 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. 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

8. Shell Programming and Scripting

How does mutt command pick senders Details

Hi All, We use mutt in one of our scripts to send files as a part of a batch job . The command works nicely but i want to know from where does mutt pick the sender details. As the sender id is different if i use mutt and Mail utility. I can not change the command to mail as it is a part of the... (1 Reply)
Discussion started by: amit1_x
1 Replies

9. Shell Programming and Scripting

action command

Hi.. When i refered the script /etc/rc.sysinit... i found the "action commands" like But this is not working in my shells.. the following error is coming... Please anybody help Thanks in advance esham (5 Replies)
Discussion started by: esham
5 Replies
Login or Register to Ask a Question
vacation(1)                                                        User Commands                                                       vacation(1)

NAME
vacation - reply to mail automatically SYNOPSIS
vacation [-I] vacation [-a alias] [-e filter_file] [-f database_file] [-j] [-m message_file] [-s sender] [-tN] username DESCRIPTION
The vacation utility automatically replies to incoming mail. Installation The installation consists of an interactive program which sets up vacation's basic configuration. To install vacation, type it with no arguments on the command line. The program creates a .vacation.msg file, which contains the message that is automatically sent to all senders when vacation is enabled, and starts an editor for you to modify the message. (See USAGE sec- tion.) Which editor is invoked is determined by the VISUAL or EDITOR environment variable, or vi(1) if neither of those environment vari- ables are set. A .forward file is also created if one does not exist in your home directory. Once created, the .forward file will contain a line of the form: One copy of an incoming message is sent to the username and another copy is piped into vacation: username, "|/usr/bin/vacation username" If a .forward file is present in your home directory, it will ask whether you want to remove it, which disables vacation and ends the installation. The program automatically creates .vacation.pag and .vacation.dir, which contain a list of senders when vacation is enabled. Activation and Deactivation The presence of the .forward file determines whether or not vacation is disabled or enabled. To disable vacation, remove the .forward file, or move it to a new name. Initialization The -I option clears the vacation log files, .vacation.pag and .vacation.dir, erasing the list of senders from a previous vacation session. (See OPTIONS section.) Additional Configuration vacation provides configuration options that are not part of the installation, these being -a, -e, -f, -j, -m, -s, and -t. (See OPTIONS section.) OPTIONS
The following options are supported: -I Initializes the .vacation.pag and .vacation.dir files and enables vacation. If the -I flag is not specified, and a user argument is given, vacation reads the first line from the standard input (for a From: line, no colon). If absent, it produces an error mes- sage. Options -a, -e, -f, -j, -m, -s, and -t are configuration options to be used in conjunction with vacation in the .forward file, not on the command line. For example, username, "|/usr/bin/vacation -t1m username" repeats replies to the sender every minute. -a alias Indicates that alias is one of the valid aliases for the user running vacation, so that mail addressed to that alias generates a reply. -e filter_file Uses filter_file instead of .vacation.filter as the source of the domain and email address filters. -f database_file Uses database_file instead of .vacation as the base name for the database file. -j Does not check whether the recipient appears in the To: or the Cc: line. Warning: use of this option can result in vacation replies being sent to mailing lists and other inappropriate places; its use is therefore strongly discour- aged. -m message_file Uses ~/message_file as the message to send for the reply instead of ~/.vacation.msg. message_file is a relative path to the desired vacation message file. To prevent directory/file "not found" errors, message_file should be on the same disk partition as ~/.forward. -s sender Replies to sender instead of the value read from the UNIX From line of the incoming message. -tN Changes the interval between repeat replies to the same sender. The default is 1 week. A trailing s, m, h, d, or w scales N to seconds, minutes, hours, days, or weeks, respectively. USAGE
.vacation.msg should include a header with at least a Subject: line (it should not include a To: line). For example: Subject: I am on vacation I am on vacation until July 22. If you have something urgent, please contact Joe Jones (jones@fB0). --John If the string $SUBJECT appears in the .vacation.msg file, it is replaced with the subject of the original message when the reply is sent. Thus, a .vacation.msg file such as Subject: I am on vacation I am on vacation until July 22. Your mail regarding "$SUBJECT" will be read when I return. If you have something urgent, please contact Joe Jones (jones@fB0). --John will include the subject of the message in the reply. No message is sent if the To: or the Cc: line does not list the user to whom the original message was sent or one of a number of aliases for them, if the initial From line includes the string -REQUEST@, or if a Precedence: bulk or Precedence: junk line is included in the header. vacation will also not respond to mail from either postmaster or Mailer-Daemon. In addition to the above criteria, if a .vacation.filter file exists, it is used to constrain further the set of addresses to which a reply is sent. Each line in that file should be either a domain name or an email address. If the incoming sender address matches one of the lines in the file, a reply is sent. If no lines match, no reply is sent. For lines containing an email address, the match must be exact, except for case, which is ignored. For lines containing a domain name, the sender address must be either something@domain-name or something@some- thing.domain-name. A sample filter file might look like the following: sun.com mydomain.com onefriend@hisisp.com anotherfriend@herisp.com Note: Blank lines and lines starting with "#" are ignored. FILES
~/.forward ~/.vacation.filter ~/.vacation.msg A list of senders is kept in the dbm format files .vacation.pag and .vacation.dir in your home directory. These files are dbm files and cannot be viewed directly with text editors. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsndmu | +-----------------------------+-----------------------------+ SEE ALSO
vi(1), sendmail(1M), dbm(3UCB), getusershell(3C), aliases(4), shells(4), attributes(5) SunOS 5.10 19 Mar 2004 vacation(1)