#1  
Old 19th April 2005, 16:23
mike mike is offline
Junior Member
 
Join Date: Apr 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 19th April 2005, 16:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

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!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Mini (9th November 2010)
  #3  
Old 20th April 2005, 11:08
mike mike is offline
Junior Member
 
Join Date: Apr 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Falko! It is working...

Michael
Reply With Quote
  #4  
Old 20th August 2007, 22:17
johnnynine johnnynine is offline
Junior Member
 
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What's the difference between using /etc/postfix/virtusertable and /etc/aliases?
Reply With Quote
  #5  
Old 21st August 2007, 17:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

/etc/aliases maps the mails for existing system users to another system user. virtusertable defines the email addresses that belong to a system user.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 21st August 2007, 19:09
johnnynine johnnynine is offline
Junior Member
 
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #7  
Old 23rd August 2007, 18:13
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #8  
Old 24th August 2007, 22:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 25th August 2007, 08:32
johnnynine johnnynine is offline
Junior Member
 
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #10  
Old 28th August 2007, 04:19
Happy Happy is offline
Member
 
Join Date: Jun 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default 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 04:01.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.