View previous topic :: View next topic |
Author |
Message |
Negated Void l33t
Joined: 25 Dec 2002 Posts: 672
|
Posted: Sat Apr 12, 2003 2:38 pm Post subject: Add more e-mail addresses to postfix? |
|
|
Hello!
Is there a way that i can set-up more e-mail addresses on my box?
I only have one account at the moment - root, but can i set up more without makeing new users or should i make users?
What is the new user command for linux anyways (forgot lol..)
Can i set it up so lets say anyther sent to matt@mailserver goes to root@mailserver's box?
Thanks!
-Matt |
|
Back to top |
|
|
Crg Guru
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Sat Apr 12, 2003 4:25 pm Post subject: Re: Add more e-mail addresses to postfix? |
|
|
Negated Void wrote: | Hello!
Can i set it up so lets say anyther sent to matt@mailserver goes to root@mailserver's box?
Thanks!
-Matt |
Have alook at /etc/mail/aliases or /etc/aliases depending on your system.
Its as simple as adding:
matt: root |
|
Back to top |
|
|
bmph8ter n00b
Joined: 06 May 2002 Posts: 46
|
Posted: Sat Apr 12, 2003 5:09 pm Post subject: |
|
|
IMHO it would be a good idea to add a user. Doing all your work as root is usually a bad idea. Look into superadduder or kuser (if you have KDE) for an easy way to create users. |
|
Back to top |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Sat Apr 12, 2003 5:22 pm Post subject: |
|
|
I believe there are some MTA's that allow email users without having a shell account, but they have to be set up in a special way (unix /var/spool/mail instead of home directories, for example).
That said, I don't know which support it, or how. I mean, really -- do you think we all have shell accounts on those yahoo boxes under "tall_dark_and_handsome" or whatnot? |
|
Back to top |
|
|
Negated Void l33t
Joined: 25 Dec 2002 Posts: 672
|
Posted: Sat Apr 12, 2003 6:24 pm Post subject: |
|
|
you mean you DON'T have a shell accout at yahoo?
I just use root because it's a server - I'm either setting it up, or i'm not using it.
Thanks for the tip about the aliases file!
-Matt |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Sun May 09, 2004 6:03 pm Post subject: |
|
|
i'm still wondering how to give people a mail address on my server without creating an account. any help? |
|
Back to top |
|
|
Dr_Stein Guru
Joined: 21 Mar 2003 Posts: 303 Location: Mountain View, CA
|
Posted: Sun May 09, 2004 6:12 pm Post subject: There is!! |
|
|
Put the users in LDAP
Put the users in MySQL
www.gentoo.org -> Other Docs -> Virtual Mailhost HowTo
It works quite well.
Otherwise, Google for "postfix virtual" - Postfix can handle virtual users as well, but they'd need user accounts - which you said you don't want. However, you can still give an account but not allow it shell access (AllowUsers directive in sshd_config)
Lots of stuff one can do! |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Sun May 09, 2004 6:16 pm Post subject: |
|
|
thanks, so i try one of these solution. get back to you if i need further help |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Sun May 09, 2004 10:29 pm Post subject: Re: There is!! |
|
|
Dr_Stein wrote: | Put the users in LDAP
Put the users in MySQL
www.gentoo.org -> Other Docs -> Virtual Mailhost HowTo
It works quite well.
Otherwise, Google for "postfix virtual" - Postfix can handle virtual users as well, but they'd need user accounts - which you said you don't want. However, you can still give an account but not allow it shell access (AllowUsers directive in sshd_config)
Lots of stuff one can do! |
as i failed on the Virtual Mailhost HowTo i give it up for the moment and will create the 5-10 user accounts i'll use on my mailserver. unfortunately mail from the outside doesn't arrive to the newly created user - /var/log/messages doesn't give any hint. i don't have a clue why this shouldn't be working. i can send mail - even to the outside - with these accounts but i only recieve mails sent locally from root or my first user. any idea? |
|
Back to top |
|
|
ixion l33t
Joined: 16 Dec 2002 Posts: 708
|
Posted: Tue May 25, 2004 11:41 pm Post subject: |
|
|
Do you have in your /etc/postfix/main.cf:
Code: |
inet_interfaces = all
|
I don't remember the exact syntax, but I think that's it. After editing that, do a 'postfix reload', and all should be good.
What hung you up in the VirtMailhost how-to? That is an EXCELLENT tutorial. I used it at home for 6 or so sites.. works great..
Do you want all mail sent to these new users to arrive at one local user, or you want all those users to read their own mail? For example, do you want mail going to user1@local.domain user2@local.domain and user3@local.domain to be read by 'mylocaluser', or do you want user1, user2, and user3 to read their own mail? If you want the former, it's as easy as what crg suggested. If you want the latter, I would highly recommend following the Virtual Mailhost Guide... it is much safer and more organized IMHO.. _________________ only the paranoid survive |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Wed May 26, 2004 8:25 pm Post subject: |
|
|
thanks for your precise answer. i found the bug: i installed an iptables script and closed my ports - and fortgot to open the port 25 to the outside. i was lucky to find that bug, nevertheless it already took me hours looking for it.
what i didn't get within the virtual mail howto was the part in how to create an existing user (i.e. one with an account) and virtual users. i had problems with the password and users too - i didn't get how you connect to the mysql database from an email client. ssl & which user name and password? the one for the database? didn't work. the one for the user/virtual user? didn't work neither - altough this could be due to misconfiguration. if you still know how you achieved your virtual mail users i'd GREATLY appreciate any help or hint towards this setup as i'd really need it! _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
|
|