Sponsored Content
Top Forums UNIX for Advanced & Expert Users Creating a 'catchall' account in Sendmail Post 42506 by RTM on Thursday 30th of October 2003 10:11:15 AM
Old 10-30-2003
Bug

First - update your resume.
Second - Explain to him again that the reason folks get 'mailbox not found' messages is because the person/account is no longer there. This is normal and should not be changed - the thing that SHOULD be changed is where customers send email.

Setting up email addresses such as ourIBMcustomer and pointing that to the appropriate group of folks that can answer these emails.

So one of your customers wants to send an email to a person or a group of folks at your company for information. The customer gets an email address from your company such as ourIBMcustomer@yourdomain.com. In your sendmail server (You did not post the OS - I'll give example of Solaris and Sendmail) in /etc/mail/alias file put the following entry

ourIBMcustomer: myboss, myaccount, personabouttoleave

So any mail coming in for ourIBMcustomer would go to your boss, you, and the person about to leave your company.

Then you run the newaliases command and now any email coming in for ourIBMcustomer goes to those folks. When the person does leave, you remove personabouttoleave from that line, save the alias file, and run the newaliases command again.
Now the email only goes to you and your boss (or you can add another new account). You have to teach your customers that if they want a response from email, they must send to the account set up for their company (or accounts - you can have many).

The headache is keeping up with it - hopefully you know when folks are leaving - another thing you can do is for the person who just left the company is set up an alias to send any of their email to their boss.

john.doe: jane.doe

Any email coming in for john.doe would now go to jane.doe (after the newaliases command is run).

Or a .forward file could be put into the currently gone user's home directory to forward all email to someone else. Locking the account would not effect email deliver but would be needed to insure the ex-employee did not get into your servers via that account.

If you still want to mess around with sending all email to your boss, you would have to edit the sendmail.cf file and redirect email that fails to have a valid receipent to send him the message - a wildcard alias would not work since he would get ALL email - not just invalid email.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating a manager account

Dear All, This is my first post, so greetings to you all! :cool: I have root access to a UNIX system, yet I would like to be able to create user accounts with special privileges and roles such i.e. a User Manager account a Print Manager Account or even an account with the same roles and... (2 Replies)
Discussion started by: neked
2 Replies

2. Post Here to Contact Site Administrators and Moderators

Error creating new account

I tried to create an account, user name Ralph.Armstrong using my corporate e-mail address. Unfortunately, I think my company's e-mail server must have blocked the confirming e-mail because I never got it. I then created another account, user name Ralph Armstrong using my personnal e-mail... (0 Replies)
Discussion started by: Ralph Armstrong
0 Replies

3. UNIX for Dummies Questions & Answers

creating admin account

does any know how I can create more admin login accounts in unix? would there be a file somewhere that would have a list of these accounts? thanks, gammaman (3 Replies)
Discussion started by: gammaman
3 Replies

4. UNIX for Dummies Questions & Answers

creating a new unix user account

:) Hi guis, I would like to Know how to create a new user account with examples. I refered some books ,but they r not clear. Can any body of u provide me a shell script to create a new user account. any help pls :) cheers Ravi Raj Kumar (7 Replies)
Discussion started by: ravi raj kumar
7 Replies

5. UNIX for Dummies Questions & Answers

Creating a new account

Hi How do I create a new account with a specific group and home directory specified? TIA (2 Replies)
Discussion started by: domburf69
2 Replies

6. Programming

Creating email account prgramatically + java ?

Dear Friend, I am working on java application which requires that after successful registration an email account is created (say username@mydomain.com) for user. Is is possible to create e-mail account programatically ? Enviornment - CentOs, Tomcat Web server. CPanel is available, but... (0 Replies)
Discussion started by: reckless_jack
0 Replies

7. Solaris

Creating User account with limited permission

Hi All, I want to create an user account which can only excute "df -kh" and "prstat -a" command. The user will not be able to perform "rm" and other critical commands. Is there a way to do it? rgds, Ronny (2 Replies)
Discussion started by: ronny_nch
2 Replies

8. UNIX for Dummies Questions & Answers

Creating FTP account using SSH (putty)?

Hello, : ) I have a remote access to the server that hosts my joomla, and it does not have cpanel. So I have to do everything manually. I need to have an FTP account to the httpdocs folder because I need to put these info in the config file of joomla (to allow file uploading ...etc) So,... (8 Replies)
Discussion started by: Hayatt
8 Replies

9. Solaris

Creating user account in Solaris

Hi I need to create a new user account in salaries. Can anyone tell me the cmd to create the new user acc. But the main thing is it should same permissions ,same group etc of already existing group. For example we have already one user in name “comp” so the newly created user should also have... (3 Replies)
Discussion started by: kkalyan
3 Replies

10. UNIX Desktop Questions & Answers

X11 Display Problem with Mac OSX after creating new account

For preliminaries, I am on a Mac Pro running 10.5. I am trying to run a program that opens an X11 graphic and plots a mesh. The little program is called showme. It has worked just fine in the past. Up until I had to make a new user account on this machine for myself. Now every time I try to... (8 Replies)
Discussion started by: Bocephus85
8 Replies
rcp(1c) 																   rcp(1c)

Name
       rcp - remote file copy

Syntax
       rcp [ -p ] file1 file2
       rcp [-r] [-p] file... directory

Description
       The command copies files between machines.  Each file or directory argument is either a remote file name of the form rhost:path, or a local
       file name.  Local file names do not contain colons (:) or backslashes () before colons.

       Note that the command refuses to copy a file onto itself.

       If path is not a full path name, it is interpreted relative to your login directory on rhost.  To ensure that the metacharacters are inter-
       preted  remotely,  a  remote  host's  path  can be quoted by either using a backslash () before a single character, or enclosing character
       strings in double (") or single (') quotes.

       The command does not prompt for passwords; your current local user name must exist on rhost and allow remote command execution via

       The command handles third party copies, where neither source nor target files are on the current machine.  Hostnames may also take the form
       rname@rhost  to	use rname rather than the current user name on the remote host.  The following example shows how to copy the file foo from
       user1@mach1 to user2@mach2:
	$ rcp user1@mach1:foo  user2@mach2:foo
       Note that the file .rhosts on mach2 in user2's account must include an entry for mach1 user1.  Also note that it may be necessary  for  the
       person implementing the command to be listed in the .rhosts file for mach1 user1.

       By  default,  the mode and owner of file2 are preserved if file2 already exists.  Otherwise, the mode of the source file modified by on the
       destination host is used.

Options
       -p   Preserves the modification times and modes of the source files in its copies, ignoring the

       -r   Copies files in all subdirectories recursively, if the file to be copied is a directory.  In this  case  the  destination  must  be  a
	    directory.

Restrictions
       The  command  is  confused by output generated by commands in a .cshrc file on the remote host.	In particular, `where are you?' and `stty:
       Can't assign requested address' are messages which can result if output is generated by the startup file.

See Also
       ftp(1c), rlogin(1c), rsh(1c)

																	   rcp(1c)
All times are GMT -4. The time now is 06:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy