Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: 0

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

|(/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


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




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration