
19th April 2005, 17:23
|
|
Junior Member
|
|
Join Date: Apr 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Setup mailaccount
Hi,
I have followed the SuSE 9.2 server "The Perfect Setup".
Now how do I create a mailaccount using courier imap?
Michael
|

19th April 2005, 17:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,843
Thanks: 781
Thanked 1,557 Times in 1,476 Posts
|
|
First you have to tell Postfix to deliver emails to a user's Maildir:
Code:
postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
/etc/init.d/postfix restart
Then you have to create a system user and a password:
Code:
useradd -d /home/sample_user -g users sample_user
passwd sample_user
Then run
Code:
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
postconf -e 'mydestination = /etc/postfix/local-host-names'
/etc/postfix/local-host-names should contain all domains that you want to accept emails for, e.g.:
Code:
localhost
your.server.name
localhost.your.server.name
example.com
yourdomain.com
/etc/postfix/virtusertable looks like this:
Code:
info@yourdomain.com sample_user
thomas@example.com sample_user
webmaster@yourdomain.com sample_user
Emails for info@yourdomain.com, thomas@example.com and webmaster@yourdomain.com will now arrive in the mailbox of sample_user.
Everytime you change /etc/postfix/virtusertable you have to run the following command:
Code:
postmap /etc/postfix/virtusertable
Now restart Postfix:
Code:
/etc/init.d/postfix restart
and you're done!
|

20th April 2005, 12:08
|
|
Junior Member
|
|
Join Date: Apr 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Falko! It is working...
Michael
|

20th August 2007, 23:17
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
What's the difference between using /etc/postfix/virtusertable and /etc/aliases?
|

21st August 2007, 18:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,843
Thanks: 781
Thanked 1,557 Times in 1,476 Posts
|
|
/etc/aliases maps the mails for existing system users to another system user. virtusertable defines the email addresses that belong to a system user.
|

21st August 2007, 20:09
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
/etc/aliases maps the mails for existing system users to another system user. virtusertable defines the email addresses that belong to a system user.
|
I have my /etc/aliases file mapping non-existing system users to a system user and it works fine, so I don't quite understand?
|

23rd August 2007, 19:13
|
|
Member
|
|
Join Date: Jun 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
postfix config
etc/postfix/local-host-names
the above file contains no info and when I try and open it says new file. So do I create files that do not exist. as I ran the command prior to the above. I used webmin to add users. Again I am using just local or system users no virtual users
Thanks
Happy
|

24th August 2007, 23:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,843
Thanks: 781
Thanked 1,557 Times in 1,476 Posts
|
|
Quote:
|
Originally Posted by Happy
etc/postfix/local-host-names
the above file contains no info and when I try and open it says new file. So do I create files that do not exist.
|
Yes, you must create that file.
|

25th August 2007, 09:32
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
/etc/aliases maps the mails for existing system users to another system user. virtusertable defines the email addresses that belong to a system user.
|
Ok, I reread this and it makes sense... too many late night linux installs.
|

28th August 2007, 05:19
|
|
Member
|
|
Join Date: Jun 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
email setup
info@yourdomain.com sample_user
thomas@example.com sample_user
webmaster@yourdomain.com sample_user
Since my users are accepting mail for only one domain-WOuld it look like this
thomas@example.com jthomas
thad@example.com sthad
thompson@example.com jthompson
So what I am saying is if I have only one domain and the user is accepting mail for that single domain, does each user need to be put in like above?
Thanks
Happy
Last edited by Happy; 31st August 2007 at 05:01.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 14:28.
|
Recent comments
5 hours 55 min ago
11 hours 11 min ago
11 hours 22 min ago
11 hours 30 min ago
12 hours 32 min ago
14 hours 40 min ago
17 hours 5 min ago
17 hours 23 min ago
17 hours 31 min ago
18 hours 47 min ago