Need help with sendmail email filtering on FreeBSD


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Need help with sendmail email filtering on FreeBSD
# 1  
Old 12-29-2014
Need help with sendmail email filtering on FreeBSD

Hi All,
Sorry, for the double posting. Don't know how to move to a different forum.

I am very new to Unix. I have a test server running FreeBSD 10.1 and SendMail 8.14.9.

I need to filter incoming emails based on the sender's email address or domain and forward them to another address on a different domain as well as to the original recipient. Can I achieve this with SendMail and ProcMail?

The server's domain is domain.com. I need to be able to forward emails coming from auser@domain.a or any emails coming from *@domain.b and forward them to auser@domain.c and as well as to the intended recipient @domain.com

Your help will be greatly appreciated.

Regards
# 2  
Old 01-02-2015
Sendmail rewrite rules are a real tricky thing, one very thick Riley book. The right rewrite rule in sendmail.conf can redirect mail, but I am not sure it can create a hidden additional recipient. You could direct it to a local recipient and rework it in a script pointed to by ~/.forward (but turning that on is not considered very secure). Alternatively to .forward, a cron for that user could receive email and forward it to as many recipients as you want, using shell scripting.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unable to recieve email using sendmail

Hi, Here is my script to send out emails. #!/bin/ksh { print "From: Prod@`hostname`.mycomp.com" print "To: me@mycomp.com" print "MIME-Version: 1.0" print "Content-Type: text/html" print "Subject: Usage Report" print "" print... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. UNIX for Dummies Questions & Answers

Help with SendMail Procmail filtering

Hi All, I am very new to Unix. I have a test server running FreeBSD 10.1 and SendMail 8.14.9. I need to filter incoming emails based on the sender's email address or domain and forward them to another address on a different domain as well as to the original recipient. Can I achieve this with... (1 Reply)
Discussion started by: simplemind
1 Replies

3. AIX

Set email Priority using sendmail

Hi everyone, I'm trying to send an email on unix using sendmail command. For setting the priority to high I use: X-Priority: 1 And it works on HP but when I tried it on AIX the email is sent but no priority!! Anyone can help me Thanks in advance, Hiposh (3 Replies)
Discussion started by: hiposh
3 Replies

4. Red Hat

Delay in sending email to-from localhost in Sendmail

Hi Friends, I am very much new to sendmail or any other mta. I just installed sendmail 8.14 on my rhel6 machine. I was trying to send email to local user but after entering the message when i press CTRL-D it simply hangs. I also tried sending email via mutt but again mutt also hangs. It sends... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

5. Debian

sendmail taking too much time to send a email

Hi , I'm using sendmail command to send a email. To send a email sendmail taking 3minutes to complete the process. Is there any configuration needs to be done in server or another solution is there to resolve this issue. Thanks in Advance. Regards Latika (1 Reply)
Discussion started by: latika
1 Replies

6. Solaris

Outbound email re-direct using Sendmail

I need to reconfigure Sendmail to strip the SMTP email addresses from all email and replace them with a single address used for testing purposes. I have a vended application hosted on Solaris 10 servers. I have access to support the application framework (IBM WebShere Application Server 6.1),... (1 Reply)
Discussion started by: dunkar70
1 Replies

7. Shell Programming and Scripting

filtering and sending sar output via email

We have a program which create sar output files which has a weeks data... To read file we use sar -f sa15 command which has multiple days data( a weeks data)....we need to only get last 48 hours data and email it to different users.... I guess we can use combination of sar -o or even awk.... (3 Replies)
Discussion started by: noorm
3 Replies

8. UNIX and Linux Applications

Sendmail outgoing email rate

Does anyone know what's Sendmail outgoing email rate? e.g. 1000 outgoing email per minutes. If so, can we modify it? Thanks. :) (1 Reply)
Discussion started by: sunmagic2003
1 Replies

9. HP-UX

Sendmail not submitting Email on '.'

I have several HP/UX nodes running Sendmail 8.13 ...some work fine, some don't. When an Email is coming in, the 'DATA' command never ends. The other side of the connection gets to the point where it enters the '.' on a line by itself, but sendmail doesn't accept it...if fact it keeps on holding... (8 Replies)
Discussion started by: john_exonets
8 Replies

10. BSD

sendmail on FreeBSD

Dear all, I have been using freebsd 5.4 for 2 months using fetchmail to retrieve mails and using sendmail to send mails. I have no problem with fetchmail to retrieve mails from pop3 server. And most of the time I have no problem with sendmail. But recently I found that I could not send... (0 Replies)
Discussion started by: jaguar
0 Replies
Login or Register to Ask a Question

Featured Tech Videos