Operating System - HP-UX
1844011 Members
3660 Online
110226 Solutions
New Discussion

mail accounts and sendmail

 
nikolaii
Advisor

mail accounts and sendmail

Hi,
just a question : is it possible to add mail accounts (I use sendmail on a hp-ux 10.20) for many user; without to add local users ?
Thanks
Nico
5 REPLIES 5
Christian Gebhardt
Honored Contributor

Re: mail accounts and sendmail

Hi

Be sure that your mailing system is configured correctly than you can use arbitrary mail-adresses.

It's also possible to define aliases:

#vi /etc/mail/aliases

...
mailgroup1: name1@yahoo.com,...
mailgroup2: name2@gmx.com,...
...

#newaliases
/etc/mail/aliases: 10 aliases, longest 177 bytes, 501 bytes total
#

Chris



David_246
Trusted Contributor

Re: mail accounts and sendmail

Hi Nico,

Just as explained you can use the /etc/mail/aliases file for that.

You very easy define a name and after the semicolon define it's destination adres, or as shown in the example above you can specify multiple users to receive the email.

newemail: myadres@home.nl
adrestoall: myadres@home, myadres@work.nl, all@work.nl

So in this case none of the e-mail adresses are created as actual users on the local machines.
so send an e-mail would now work as :

/usr/lib/sendmail newemail@host
Hope this clarifies it all.


Regs David
@yourservice
nikolaii
Advisor

Re: mail accounts and sendmail

mmhh, the problem is that I will NOT refer to an existent local user account. Aliases works well, but because a local user allready exists. But now, how can I add mail accounts for users which have NO local account.(i can "useradd -s /bin/false", but when I have a lot of users, it will be a hard work !)
Thanks for replies
Nico
Nick Wickens
Respected Contributor

Re: mail accounts and sendmail

Hi Nico

You can add addresses in the aliases file for any address even if a userid does not exist by just setting up an alias for it - ie

nick:nick@nickwickens.co.uk

can be setup even if there is not a user called nick.

However your mail setups need to be configured correctly to allow this to work. I our case I can get mail out to an exchange system on our network but I can't escape onto the net yet.
Hats ? We don't need no stinkin' hats !!
nikolaii
Advisor

Re: mail accounts and sendmail

ok, aliases now works fine, users can send messages via SMTP, but I wonder how I do add passwords for POP accounts, so as to allow people to identify themselve.
Thanks
Nico