Mohammedz.com

For Linux and Shell scripting.

How to create a new mail account in Sendmail

2 Comments


Add an entry to /etc/mail/virtusertable like:

user@domain.com user

Then create a normal user in the system.

 root# useradd user -s /sbin/nologin

(It is not necessary to have a home directory for this user!!!).

Advertisements

2 thoughts on “How to create a new mail account in Sendmail

  1. thanks, for nice solution

  2. then : postmap /etc/mail/virtusertable

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s