[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference abbott::mailworks-unix

Title:Mailworks-unix
Notice:V2.0.4 now available -- see Note 4.375
Moderator:TAMARA::NEUMAN::Neumann
Created:Wed Jun 02 1993
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1384
Total number of notes:5851

1372.0. "sendmail / Uppercase in aliases / nis ... little orbig bug ???" by NNTPD::"[email protected]" (Thierry FAIDHERBE) Wed Apr 23 1997 10:56

Hi,

I posted one note some days ago in unix conference but I think that
Unix Guru's ligth are turned off ....

I reposted the same note in these conference and I hope that
mailworks gurus will be able to help me.

I spent a lot of time to try to understand what doesn't work but 
I never understood anything.

In the end of this note, I put my lat reply to unix note with some of my last
tests.

Note : The aliases defined in the following note have been defined by myself
on 
customer site. Why ?.... It's now difficult. Take a look to these defined
by the customer himself and you will understand why I tried these combinasions
Jean-Pierre.Malisse:cammejpm
Mia.Devolder:mummmd
Cathy.Plasman:mummcp
Kevin.Ruddick:kevin
Dries.Van.den.Eynde:dries
Bieke.Ryckebusch:bmmbr
Mark.Moens:scheldmm
Patrick.Luyten:patrick
Andre.Pollentier:mummap
Fabrice.Ovidio:fo
Johan.Backers:mummjb
Frank.Delbecke:mummfd
Alexander.Vasilkov:telsatav
Eric.Donnay:belmeced
Yolande.Maes:mummym
Benoit.Petit:petit
Thierry.Jacques:mummtj
Ronny.Schallier:mummrs
Jose.Ozer:mummjo
Brigitte.Lauwaert:mummbl
Ernest.Rosschaert:belmecer
Yang.Lianwu:operayl
Lucien.Schwind:cammels
Jan.Haelters:mummjh
Georges.Pichot:mummgp
Serge.Scory:serge
It's not a joke : customer is mailing "mailx Jean-Pierre.Malisse" ...
I think that customer haven't found anything shorter ... 8-]
 
Hope reply.

Thanks in advance,
Kind Regards,

+---++---++---++---++---++---++---+ TM  Digital Equipment Belgium
|   ||   ||   ||   ||   ||   ||   |   Multivendor Customer Services
| d || i || g || i || t || a || l |         Thierry FAIDHERBE
|   ||   ||   ||   ||   ||   ||   |      DIGITAL Unix Support Team
+---++---++---++---++---++---++---+  Email [email protected]
            Phone : +32 2 729 77 44  Fax : +32 2 729 77 65

         I haven't lost my mind, it's backed up on tape somewhere.


+++++++++++++++++++++++++++



Note 9573.0  sendmail / Uppercase in aliases / nis ... little or  3 Replies
NNTPD::"[email protected]" "thierry FAIDHERB" 60 lines  22-APR-1997
08:17
------------------------------------------------------------------------------
-
Hi to all,

I am working since a few days on a call with sendmail ( OS : DU4.0A)

Customer have defined the following in the local aliases file 
on their nis server :
digital:[email protected]
DiGiTal2.3:[email protected]
DiGiTaL2-3:[email protected]
Digital:[email protected]

I runned newaliases in /var/adm/sendmail directory and ok.
From their nis master server, aliases mailing is ok.

now, I created the 3 links for aliases :
cd /etc/yp/src

ls -al |grep aliases
 lrwxrwxrwx   1 root     system        25 Apr 22 13:19 aliases ->
/var/adm/sendmail/aliasess
 lrwxrwxrwx   1 root     system        29 Apr 22 13:19 aliases.dir ->
/var/adm/sendmail/aliases.dir
 lrwxrwxrwx   1 root     system        29 Apr 22 13:19 aliases.pag ->
/var/adm/sendmail/aliases.pag

cd ..

make aliases
 ( phush aliases ...)

Now ... test :
==============
---|> from nis master server : mailx -v DiGiTaL2-3 is ok

---|> from a Nis client,
 and if I run the same command (mailx -v DiGiTaL2-3)
 I always receive ... USER Unknow
If I check with ypmatch DiGiTaL2-2 aliases, I found the aliase for
[email protected]

On sendmail.cf file, I removed the U flag for Mlocal.
and restartted sendmail daemon.

Can someone explain these starnge things  or  Bug ???? 
Any comment would be very appreciate.

Thanks in advance,
Kind Regards,

+---++---++---++---++---++---++---+ TM  Digital Equipment Belgium
|   ||   ||   ||   ||   ||   ||   |   Multivendor Customer Services
| d || i || g || i || t || a || l |         Thierry FAIDHERBE
|   ||   ||   ||   ||   ||   ||   |      DIGITAL Unix Support Team
+---++---++---++---++---++---++---+  Email [email protected]
            Phone : +32 2 729 77 44  Fax : +32 2 729 77 65

         I haven't lost my mind, it's backed up on tape somewhere.


[Posted by WWW Notes gateway]
==============================================================================
=
Note 9573.1  sendmail / Uppercase in aliases / nis ... little or big pro  1 of
3
NNTPD::"[email protected]" "Farrell Woods"             23 lines  22-APR-1997
10:01
                      -< those databases are different! >-
------------------------------------------------------------------------------
-
Please do NOT create links for the .dir and .pag files between sendmail
and NIS.  NIS databases (maps) always have a couple of extra entries
that you don't normally see.  These are used by the NIS utilities.  If you
attempt to point NIS at databases created by the sendmail tools then
you're apt to cause NIS to break.

I don't know about sendmail and its aliases file specifically but I wouldn't
be surprised if the same holds true there as well.

What you could do is to create a symlink in /var/yp/src that points to
/var/adm/sendmail/aliases.  Then use NIS's makedbm utility to create the
NIS map for the aliases file, and use the newaliases command to build
sendmail's alias databse.

Bottom line: the .pag and .dir files that NIS creates WILL be different
than those that "newaliases" creates.  Don't substitute one for the other.




        -- Farrell

[Posted by WWW Notes gateway]
==============================================================================
=
Note 9573.2  sendmail / Uppercase in aliases / nis ... little or big pro  2 of
3
NNTPD::"[email protected]" "Th FAIDHERBE"      7 lines  22-APR-1997
10:12
                          -< doing online test ...  >-
------------------------------------------------------------------------------
-
I am doing tests on customer site.
Status will be provided as soon as possible.

Tanks for info,
Thierry

[Posted by WWW Notes gateway]
==============================================================================
=
Note 9573.3  sendmail / Uppercase in aliases / nis ... little or big pro  3 of
3
NNTPD::"[email protected]" "Thierry FAIDHERB" 18 lines  22-APR-1997
10:34
------------------------------------------------------------------------------
-
hi,

that seems to work a little better but mailx always refuse to send mail to
one aliases if aliase includes . -  

Aliase to digital .. -|> Ok
          Digital        Ok
          DIGITAL        Ok
          DIGITAL.digital  ... user unknow
          DIGITAL-digital  ... user unknow ...

Other ideas why mailx doesn't accept these chars ???? I think that
the explanaition should become from mailx because one
ypmatch DIGITAL.digital aliases give correct Email address ... 

Other ideas ????

[Posted by WWW Notes gateway]



Hi,

Now I can reproduce the customer problem.
When using Nis master server (OSF3.2E) and Nis client (OSF 3.2G, 4.0, 
4.0b, 4.0a), problem seems to be the same.

For This test, TFD_DIG is a nis aliases for faidherb.
The faidherb account is "provided" by the Nis Passwd.

DBC409_#mailx -v TFD_DIG
Subject: jldrg
sfah
EOT
TFD_DIG... Connecting to ciney.bro.dec.com (smtpr)...
220 ciney.bro.dec.com Sendmail 5.65v3.2 (1.1.8.2/14Mar97-0356PM) Wed, 23 Apr
190
>>> HELO dbc409.bro.dec.com
250 ciney.bro.dec.com Hello dbc409.bro.dec.com, pleased to meet you
>>> MAIL From:<[email protected]>
250 <[email protected]>... Sender ok
>>> RCPT To:<TFD_DIG>
550 <TFD_DIG>... Addressee unknown
TFD_DIG... User unknown
>>> QUIT
221 ciney.bro.dec.com closing connection
Saving message in //dead.letter
//dead.letter... Connecting to ciney.bro.dec.com (smtpr)...
220 ciney.bro.dec.com Sendmail 5.65v3.2 (1.1.8.2/14Mar97-0356PM) Wed, 23 Apr
190
>>> HELO dbc409.bro.dec.com
250 ciney.bro.dec.com Hello dbc409.bro.dec.com, pleased to meet you
>>> MAIL From:<[email protected]>
250 <[email protected]>... Sender ok
>>> RCPT To:<//dead.letter>
554 <//dead.letter>... Cannot mail directly to files: Operation would block
//dead.letter... Service unavailable
>>> QUIT
221 ciney.bro.dec.com closing connection


I also defined some other aliases for same faidherb user :

Aliase name           Result
tfddig,
TFDDIG                Works fine and see that it's a aliases fro faidherb

mailx -v TFDDIG 
Subject: hjfh
hfjgf
EOT
TFDDIG... Connecting to ciney.bro.dec.com (smtpr)...
220 ciney.bro.dec.com Sendmail 5.65v3.2 (1.1.8.2/14Mar97-0356PM) Wed, 23 Apr
190
>>> HELO dbc409.bro.dec.com
250 ciney.bro.dec.com Hello dbc409.bro.dec.com, pleased to meet you
>>> MAIL From:<[email protected]>
250 <[email protected]>... Sender ok
>>> RCPT To:<TFDDIG>
250 <TFDDIG>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 Ok
>>> QUIT
221 ciney.bro.dec.com closing connection
TFDDIG... Sent


Aliase name           Result
tfd-dig,
TFD-DIG                Doesn't works and always reply Addressee unknown

DBC409_#mailx -v tfd-dig   
Subject: ksrhfeah
qerh
EOT
tfd-dig... Connecting to ciney.bro.dec.com (smtpr)...
220 ciney.bro.dec.com Sendmail 5.65v3.2 (1.1.8.2/14Mar97-0356PM) Wed, 23 Apr
190
>>> HELO dbc409.bro.dec.com
250 ciney.bro.dec.com Hello dbc409.bro.dec.com, pleased to meet you
>>> MAIL From:<[email protected]>
250 <[email protected]>... Sender ok
>>> RCPT To:<tfd-dig>
550 <tfd-dig>... Addressee unknown
tfd-dig... User unknown
>>> QUIT
221 ciney.bro.dec.com closing connection
Saving message in //dead.letter
//dead.letter... Connecting to ciney.bro.dec.com (smtpr)...
220 ciney.bro.dec.com Sendmail 5.65v3.2 (1.1.8.2/14Mar97-0356PM) Wed, 23 Apr
190
>>> HELO dbc409.bro.dec.com
250 ciney.bro.dec.com Hello dbc409.bro.dec.com, pleased to meet you
>>> MAIL From:<[email protected]>
250 <[email protected]>... Sender ok
>>> RCPT To:<//dead.letter>
554 <//dead.letter>... Cannot mail directly to files: Operation would block
//dead.letter... Service unavailable
>>> QUIT
221 ciney.bro.dec.com closing connection






The problem can easy be reproduced if you try to add aliases with Uppercase 
and/or lowercase and if you are using the following chars "_" "-" "." in your
aliase name

%%%%%�%
%%%%%%%
BUT %%%
%%%%%%%
%%%%%%%

I copied my tfd_dig, TFD-DIG ,...... to the local aliases database and
I ran the newaliases command, these tfd_dig, TFD-DIG ,......

and THAT WORKS VERY FINE ... ... ...


Can somebody explain Why .... IS IT A BUG in mailx  when accessing to 
Nis Aliases database ???? I think because if I run one "ypmatch TFD-DIG
aliases"
I receive "faidherb". In this way, I think that Nis have successfully exported
the aliases .....


Any comments, explanations, ..... 


Thanks 
[Posted by WWW Notes gateway]


Ater other test, TFD-DIG works and two minuts later, doesn't work anymore ....



Thanks and hope reply ..
Thierry.





[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
1372.1I don't think we can helpTAMARA::NEUMAN::NeumannStan NeumannMon Apr 28 1997 14:074
I'm afraid that we do not have enough knowledge of
sendmail to be able to help you on this problem.

-Stan
1372.2check with the sendmail folks...MSKRAT::ANKANIdle words waste timeMon May 05 1997 10:531
They follow the rdgeng::ultrix-mail conference.