1846781 Members
3932 Online
110256 Solutions
New Discussion

Re: Mail problem

 
SOLVED
Go to solution
Dave Burton_1
New Member

Mail problem

I'm having a problem sending mail to certain users. I'm pretty sure it's related to the presence of capital letters in the username, but can't figure a workaround.

If I create a user mailtest (no capitals), I can mail that user no problem. But when I create a user MAiltest (leading capitals), I get 'user unknown' errors when I try to mail them.

The policy here has been to create usernames in the format DBurton. Surely I don't have to drop and recreate these users.

I've tried enclosing the username in single and double quotes with no joy. Can anyone help?

Here's output from a verbose sendmail command.

DBurton@DPYJDE01# /usr/sbin/sendmail -v -d0.1 -d11.1 DBurton < /dev/null
Version 8.9.3 (PHNE_18546)
Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETUNIX NEWDB NIS QUEUE SCANF SMTP
USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = dpyjde01
(canonical domain name) $j = dpyjde01.dpygb.jnj.com
(subdomain name) $m = dpygb.jnj.com
(node name) $k = DPYJDE01
========================================================

DBurton... User unknown
DBurton... User unknown
mailfile /no/such/directory/dead.letter
ctladdr=[NULL]
/no/such/directory/dead.letter... cannot open /no/such/directory/dead.letter: No such file or directory
postmaster... aliased to root
openmailer: rmail -d root
root... Connecting to local...
openmailer: MCI@400909b0: flags=2,
errno=0, herrno=0, exitstat=0, state=2, pid=25804,
maxsize=0, phase=NULL, mailer=local,
status=NULL, rstatus=NULL,
host=NULL, lastuse=Thu Jan 1 00:00:00 1970

root... Sent

Cheers
Dave
4 REPLIES 4
Carlos Fernandez Riera
Honored Contributor

Re: Mail problem

You nedd to configure sendamail, in order to user USERNAMES.

IIRW ( not sure at all) , find this line in /etc/mail/sendmail.cf and add a 'u';


Mlocal, P=/usr/bin/rmail, F=lsDFMAw5:/|@m, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,

-----

Mlocal, P=/usr/bin/rmail, F=lsuDFMAw5:/|@m, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,


I cant find the correct man.... Sorry.
unsupported
Sanjay_6
Honored Contributor
Solution

Re: Mail problem

Carlos Fernandez Riera
Honored Contributor

Re: Mail problem

Can you write the correct answer... please.
Just for future.

I cant see that link..

Tx.
unsupported
Sanjay_6
Honored Contributor

Re: Mail problem

Hi Carlos,

To view the link using europe-itrc, substitute europe-support in place of us-support in the link. Here is the doc,

//quote//

By default, sendmail downshifts everything in an incoming address into lower case, to avoid any difficulties when a sender capitalizes part, or all, of the name. To turn off the downshifting, the options that are passed to the mailer program in /etc/mail/sendmail.cf need to be modified, in this case, rmail.

Looking in at the Mlocal configuration, there will be something similar to:
Mlocal, P=/usr/bin/rmail, F=lsDFMAw5:/|@qm9, S=10/30, R=20/40,

This would result in:
>sendmail -v TEST TEST... User unknown

If this is modified to be:
Mlocal, P=/usr/bin/rmail, F=lsDFMAw5u:/|@qm9, S=10/30, R=20/40,

Note the "u" in the "F" options section

This will give:
>sendmail -v TEST . TEST... Connecting to local... TEST... Sent

//endquote//

Hope this helps.

Regds