Sendmail is not receiving mail for local users
 
*
Welcome, Guest. Please login or register. January 10, 2009, 01:09:55 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Sendmail is not receiving mail for local users  (Read 695 times)
0 Members and 1 Guest are viewing this topic.
Michael
Administrator
Hero Member
*****
Posts: 539


« Reply #2 on: October 29, 2007, 08:55:20 PM »

Please check installed files.

1a) lslpp -L bos.rte.install
1b) oslevel -s

2) instfix -i | grep AIX

If you get a line like:

    Not all filesets for 5300-06_AIX_ML were found.

The run the command:

3) instfix -ciqk 5300-06_AIX_ML | grep :-:

to get a list of filesets that are not yet up to TL03 level.
Logged
John Peck
Global Moderator
Senior Member
*****
Posts: 46


« Reply #1 on: October 09, 2007, 01:33:33 AM »

Well I use my own sendmail.cf, compiled from the supplied sample files, with changes to block the unacceptable promiscuous relay feature etc, which has been an open relay since time epoch with AIX ;-(, add relay for SMTP after POP3 authentication and name mapping features etc..

My aliases files are in /etc, with a .dir and .pag there too, I have various files of my own requirements for in and out bound name mappings in /etc/mail.

All my files are root.system 644 permissions in /etc, and 640 for those natively used in /etc/mail.  (I have links from /etc to /etc/mail for those natively in /etc.)  The /etc/mail directory is 750 root.system, /etc and / 755.

When I edit one of my name mapping files I run:
makemap dbm virtusers < virtusers # for example
And I run
sendmail -bi
if my aliases have changed
(actually I have a script to do this based on the timestamps).

My sendmail.cf refers to /etc/aliases, not /etc/mail/aliases.

So I suggest, first check what your sendmail.cf (supplied ?) file says as to which directory it's looking in, and then check the permissions on those directories as well as the files themselves.

In any event, nobody should use the supplied AIX sendmail.cf as that is clearly an accident waiting to happen, you should compile your own after setting your required features and in particular removing the incredible open relay !  Oh and do not copy a sendmail.cf from another system unless you have a compiled generic file suitable for such use - use only the supplied sample source files to compile a suitable file. 

If anyone would like more advice on how to do all these good things, essential for any virtual name hosting, for a small fee which will go towards running this site, I am sure I can be persuaded to part with the sum total of years of accumulated grief on the subject Grin
« Last Edit: October 09, 2007, 01:38:29 AM by John Peck » Logged
vkumar1
New Member
*
Posts: 4


« on: October 08, 2007, 07:12:58 AM »

My AIX 5.3 ML -06 box can't receive any e-mail addressed to local users and
my
var/spool/mqueue is filling with mail files.
I've tried:
sendmail -bi
hash map "Alias0": missing map file /etc/mail/aliases.db: The file
access permissions do not allow the specified action.
dbm map "Alias0": missing map file /etc/mail/aliases: A file or
directory in the path name does not exist.
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases: A system call
received a parameter that is not valid.


root /etc/mail > ls -l
total 136
-rw-r--r-- 1 root system 1424 Oct 13 10:21 aliases
-rw-r--r-- 1 root system 12288 Oct 13 08:59 aliases.db
-rw-r--r-- 1 root system 46645 Oct 14 13:17 sendmail.cf
-rw-r--r-- 1 root system 34 Oct 13 08:59 sendmail.pid

root /etc/mail > newaliases
hash map "Alias0": missing map file /etc/mail/aliases.db: The file
access permissions do not allow the specified action.
dbm map "Alias0": missing map file /etc/mail/aliases: A file or
directory in the path name does not exist.
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases: A system call
received a parameter that is not valid.


root /etc/mail > chmod 664 *
root /etc/mail > newaliases
/etc/mail/sendmail.cf: WARNING: dangerous write permissions
newaliases: cannot open /etc/mail/aliases: Group writable file


root /etc/mail > sendmail -bv root
hash map "Alias0": missing map file /etc/mail/aliases.db: The file
access permissions do not allow the specified action.
dbm map "Alias0": missing map file /etc/mail/aliases: A file or
directory in the path name does not exist.
root... deliverable: mailer local, user root

I also tried to copy all those files from second server (working one)
but it didn't help.

After changing files permissions (666), sendmail -bi returns:
/etc/mail/sendmail.cf: WARNING: dangerous write permissions
newaliases: cannot open /etc/mail/aliases: Group writable file


What am I doing wrong!?


Thanks for any help!

Once again I want to place the error the error are :---

01:---
# sendmail -q -v
Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .cf file is version 9
 
Running /var/spool/mqueue/l98650jU057822 (sequence 1 of 6)
hash map "Alias0": unsafe map file /etc/mail/aliases.db: World writable directory
dbm map "Alias0": unsafe map file /etc/mail/aliases: No such file or directory
root... WARNING: cannot open alias database /etc/mail/aliases; reading text version
 

02:--
# newaliases
Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .cf file is version 9
WARNING: World writable directory /
WARNING: Group writable directory /var/spool
WARNING: Group writable directory /var/spool/mqueue
WARNING: World writable directory /
hash map "Alias0": unsafe map file /etc/mail/aliases.db: World writable directory
dbm map "Alias0": unsafe map file /etc/mail/aliases: No such file or directory
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases: Invalid argument
 

03:---
# mail -v vkumar
Subject: Test
Cc: vkumar
Null message body; hope that's ok
Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .cf file is version 9
hash map "Alias0": unsafe map file /etc/mail/aliases.db: World writable directory
dbm map "Alias0": unsafe map file /etc/mail/aliases: No such file or directory
vkumar... WARNING: cannot open alias database /etc/mail/aliases; reading text version
vkumar... queued


Please help me to resolve this issue.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 1.362 seconds with 18 queries.




eXTReMe Tracker

Terms of Use and Privacy and Security Policies
Copyright 2001-2008 Michael Felt and ROOTVG.NET