Names dropping out of /etc/aliases


 
Thread Tools Search this Thread
Operating Systems Solaris Names dropping out of /etc/aliases
# 1  
Old 06-23-2010
Names dropping out of /etc/aliases

We are having a problem with names being dropped from the /etc/mail/aliases file. There's no pattern to the names being dropped. It is very random.

We are running sendmail 8.14.3 on a Solaris 10 server. There are about 9000 lines in the /etc/mail/aliases file.

Is there a limitation on the size or number of lines in the aliases file? Is there a bug in Solaris 10 that might account for this? I've not seen one but I might have missed it. Due to operational constraints we don't implement the recommended patches.

Any help would be appreciated.
# 2  
Old 06-23-2010
sendmail does not write to /etc/mail/aliases file. It reads a database created by "newaliases" (or "sendmail -bi").
How do you update your aliases file?
Does the timestamp and content change on your /etc/mail/aliases file unexpectedly?

Do you have a discrepency between the output of "praliases" and the original /etc/mail/aliases file?
# 3  
Old 06-24-2010
The line limit is likely BUFSIZ which can be 4096

Note the following about setting up mail aliases in /etc/aliases:

*

Mail aliases in /etc/aliases are public. This means that if you set up a mail alias called softball, anyone can send to softball@your-machinename and make use of the mail alias.
*

When the mail is sent, /etc/aliases mail aliases are not expanded. For example, if you send mail to softball@machinename, that's how the mail reads when it is received. The recipients know what the mail alias is, but not necessarily who else is on it.

The format of mail aliases that are created in /etc/aliases is somewhat different from those in .mailrc. Each /etc/aliases alias should use the following format:

*

The name of the mail alias, followed by a colon (Smilie
*

The recipients (logins and machine names), separated by commas. Note that the mail alias does not have to be on a single line.

To modify your /etc/aliases file, you must first become root. If root is password protected, you'll need to know the root password.
# 4  
Old 06-24-2010
To answer methyl we use vi to edit the file then run newaliases on it.

The size of our /etc/mail/aliases file is 481813. Like I said in the original posting there are about 9000 lines to it. Here is the format which we use.

username (REAL NAME): username@domain.name

This has some other senior folks baffled at how names seem to drop out of this file at random. The name isn't necessarily the last entry in the file. I don't believe anyone is doing a dd on the lines. This isn't something that happens once in a blue moon. This is an ongoing issue that seems to come up maybe a half dozen times a week across three different domains.
# 5  
Old 06-24-2010
Have we established whether the lines are disappearing from the flat file or the aliases database or both? Does the timestamp change on the flat file? Does anybody cut/paste from a Microsoft Windows file?
# 6  
Old 06-25-2010
The names are disappearing from the flat file. When mail comes in from an external source we see "Unknown User" in syslog. So they are disappearing from the previous vi session or the latest one.

There are six people that have root access on the servers having this problem. I believe five of us have SUN workstations and one, our team lead, has a Windows workstation but uses PuTTY to access the servers.

In an effort to try to figure out what is going on I'm going to try to do all the modifications to the aliases file. I don't think the timestamp is changing because we aren't seeing any "errors" in the messages log that the aliases.db is out of date.
# 7  
Old 06-25-2010
Any pattern to the names that are disappearing? Are they members of a large alias list or is it just random? Have you checked for unprintable characters in the file?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Pc's dropping connection to NFS

Hi there. I have a problem with pc's dropping their mounts to a network Nas. The Nas is a Synology DiskStation, it has enough concurrent connections which I think off the top of my head is about 200 and I only need 120. So, question 1 is why will a unix box drop a mount, and 2, how can I... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies

2. Solaris

PF refreshes dropping user connections

We often have to update our ipfilter rules on Solaris 11. svcadm refresh ipfilter drops users every time (we're logged in via the global and then a zlogin to the zone in question). Is there any way not to drop user's connections when modifying ipfilter rules and refreshing the service? (2 Replies)
Discussion started by: LittleLebowski
2 Replies

3. Red Hat

Create same file name to directory name without dropping it

Hi, Under '/home' directory, there is one file called 'maddy'.Usually there used to be directories under /home directory. # ls -alrt total 132 drwx------ 2 hcladmin sys 4096 May 30 10:54 admin drwxr-xr-x 29 root root 4096 Aug 27 03:54 .. drwx------ 2 v6admin dba ... (3 Replies)
Discussion started by: Maddy123
3 Replies

4. Emergency UNIX and Linux Support

Dropping Connection

Hi folks, We are pushing messages to an IBM MQ queue on a AIX server where our client connects to from their Windows server and pick up the message. The problem is that every now and then the connection drops and the client application cannot pick up the message. Someone has to bring up the... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies

5. Shell Programming and Scripting

bash dropping SIGHUPs

I've written a daemon in bash, that waits for a HUP signal and then does some processing, before waiting for the next HUP. It goes something like this: trap gothup=1 HUP while :; do gothup=0 # do some processing ... # now wait for a HUP ... while ; do sleep 30 &... (4 Replies)
Discussion started by: cambridge
4 Replies

6. Red Hat

Download speed gradually dropping

RH 4.2.1.13 Hi All, I just installed RH and I am able to connect to the internet via my router. My high speed is such that I should be able to download at over 1000 kb/s. While trying to download oracle database, it is starting at above 1000kb/s and gradually droping to below 40kb/s which... (1 Reply)
Discussion started by: jxh461
1 Replies

7. Shell Programming and Scripting

Dropping Records for unknown reason in awk script

Hi, I have written the following it is pretty sloppy but I don't see any reason why I should be losing 54 records from a 3.5 million line file after using it. What I am doing: I have a 3.5 million record file with about 80,000 records need a correction. They are missing the last data from... (8 Replies)
Discussion started by: mkastin
8 Replies

8. Linux

Free Linux Memory by Dropping Caches

Linux Kernels 2.6.16 and up provide a way to instruct the kernel to drop the page cache, inode and dentry caches on command. This tip can help free Linux memory without a reboot. Note: This is a non-destructive operation. Dirty objects are not freeable, hence; you must run sync beforehand. ... (0 Replies)
Discussion started by: Neo
0 Replies

9. Shell Programming and Scripting

Sed command dropping last record in File

Hello: I wrote a sed statement that is inserting 3 variables at the beginning of each record in a comma-delimited file: for FILE in *gnrc_lkup.csv do c=`echo $FILE | cut -c1-3` d=`grep $c $RTLIST | cut -c4-6` e=`grep $c $RTLIST | cut -c7` f=`grep $c $RTLIST | cut -c8` sed -e... (5 Replies)
Discussion started by: bheeke
5 Replies

10. UNIX for Advanced & Expert Users

strintercept dropping message on unixware

i have unixware 2.1. A warning message Strintercept dropping message start scrolling on screen. does anyone have any idea what it means? :confused: and some times system hangs with all terminals.? (2 Replies)
Discussion started by: kapilverma_udr
2 Replies
Login or Register to Ask a Question