LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2001, 03:41 AM   #1
Pankaj agrawal
LQ Newbie
 
Registered: Jun 2001
Posts: 1

Rep: Reputation: 0
Exclamation



Dear Sir/Madam;

I am configuring the OFF-LINE MAILSERVER using sendmail8.9,fetchmail & procmail(v3.14). Mailserver is working fine but problem is that
When I received a mail named to a user WHICH IS NOT MENTION IN MY ".promailrc" file ;then this mail is bounce & So my aim is to autoreply to sender with a suitable message. I am using following script but could not working.


# this lines will BOUNCE the mail to the sender - when it is not delivered to
# one of above users ... it will send the file "nosuchuser" into the mail #
body as reply ... be aware ! you need to make such file ! - mine contains #
"well, the user you wanted to reach does not exist on this server, please #
try again, it could be the user is not present anymore".


:0
|(/usr/bin/formail -r -k \
-A"X-loop: mailservice@mydomain.dom "| \
/usr/bin/gawk '{print }\
/^/ && !HEADER \
{ system("/bin/cat nosuchuser"); \
print"--" ;\
HEADER=1 }' ) |\
/usr/bin/sendmail -t


exit


Here i creat a file named nosuchuser in /bin
mailservice = pankaj
mydomain.dom = tevhlinkindia.com.
How should i solve this problem so that my senders would be able to send their mail to proper user.

Pankaj


 
  


Reply



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
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 01:05 PM
procmail trashes postfix mail server jillu Linux - Software 0 09-22-2004 03:35 PM
Autoreply exim3+procmail twantrd Linux - Software 0 01-11-2004 11:35 PM
configuring mail server (postfix+fetchmail+procmail) amolchikhale Linux - Networking 0 08-01-2003 04:59 AM
Mail AutoReply seannij Linux - Networking 1 06-29-2001 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:01 AM.

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
Open Source Consulting | Domain Registration