LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2004, 03:23 PM   #1
mock1
LQ Newbie
 
Registered: Jan 2004
Location: New Zealand
Posts: 5

Rep: Reputation: 0
Question postfix help on mandrake 9.2


hi all, I am trying to get some help with potfix. I have read through the other questions and answers................but I am sorry I still dont get it.

here is my setup.

I have a perm static IP

I have 2 domains names and MX records pointed at my Linux mandrake 9.2 box. the web pages work fine using apache name based virtual hosts file.

I am trying to get the e mail to work for the 2 domain names so that I can get mail from either domain name delivered locally to me on my internal lan using outlook (I want to just pop my mail off the server)

I have looked at ALL the post fix documentation I can find and still dont get it............maybe I am stupid.............

1)first I dont understand about entry for host names
so if my domain name is mock1 how should it look in this entery? (mydestination = $myhostname, localhost.$mydomain)

2) I dont understand about the alias's file. I have the users created on my linux box for both me and my wife. say the accounts are him and her.

Both are normal accounts on the box. how do I set up the postfix config so that say admin@mock1.com goes to her and say webmaster@mock1.com goes to me?

what else do I need to get this working?

I must have missed something.....................

thanks very much for your help........................


cheers................................
 
Old 01-20-2004, 07:49 PM   #2
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
check out webmin

In a default Mandrake 9.2 install, you should have Webmin installed. Use your browser (on any computer in your house) to access https://<IP Address>:10000 of your computer. If the webmin service doesn't respond with a login, from the command line, type-- service webmin start

as root, btw...

Using the Webmin GUI, you can access Servers >> Postfix

Check out the "General Options" setting and look at the field "What domains to receive mail for"...

I think that field is modifying the mydestination value in main.cf and/or master.cf in the /etc/postfix config directory. Add both domains if they're not listed. Save the changes and restart postfix from the command line by typing service postfix restart

You'll find the webmin gui pretty handy for configuring postfix, I think.

good luck,

di11rod
 
Old 01-20-2004, 08:42 PM   #3
mock1
LQ Newbie
 
Registered: Jan 2004
Location: New Zealand
Posts: 5

Original Poster
Rep: Reputation: 0
hi di11rod

I did try webmin, that is where I started and I do admin my linux box from webmin all the time. but still what some of the setting mean and how to set them, I have clicked on the setting link that displays help about that particular settings and I dont understand the settings in postfix

I still dont get it..............
 
Old 01-20-2004, 09:16 PM   #4
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
info on alias

Both are normal accounts on the box. how do I set up the postfix config so that say admin@mock1.com goes to her and say webmaster@mock1.com goes to me?

Within webmin, you need to click on 'alias' icon within the postfix configuration section.

Click on the button at the bottom that reads 'create new alias'. In the name field, type webmaster

in the alias to field, type your login alone. No username@mock1.com

Do a save and apply. Now, any email sent to your domain for webmaster should transparently be received by your own account.

Ok, about the multiple domains.....

Upfront I will say my config used to work, but I am rebuilding it now, so I can't assure you that this is the way it will work for you...

Here's my setting in "What domains to receive mail for"

$myhostname, mk120.mine.nu, mynetworks_style = subnet, austinpublicskatepark.org

I used to be able to receive mail for myname@mk120.mine.nu and myname@austinpublicskatepark.org all coming to myname account.

Try just adding both your domains in that field and restart postfix.

Good luck,

di11rod
 
Old 01-20-2004, 09:36 PM   #5
mock1
LQ Newbie
 
Registered: Jan 2004
Location: New Zealand
Posts: 5

Original Poster
Rep: Reputation: 0
hi di11rod, thanks man...................I am starting to get it.........LOL

this is making much more sense man............

cheers mate
 
Old 01-20-2004, 09:41 PM   #6
mock1
LQ Newbie
 
Registered: Jan 2004
Location: New Zealand
Posts: 5

Original Poster
Rep: Reputation: 0
hey D111rod, is $myhostname = localhost? or the DNS name of the box?
 
Old 01-20-2004, 10:12 PM   #7
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
leave it alone

$myhostname is a variable referenced by the postfix server. Leave it alone. Add in the other fully-qualified domain names you've registered that you want to accept email for.

di11rod
 
Old 01-20-2004, 10:18 PM   #8
mock1
LQ Newbie
 
Registered: Jan 2004
Location: New Zealand
Posts: 5

Original Poster
Rep: Reputation: 0
aaaaaaaahhhhhhh ..............I see ........................doh!

cheers m8
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 Postfix problem vous Mandriva 1 06-28-2005 05:45 PM
Postfix on Mandrake 9.0 wolftechmn Mandriva 4 11-26-2003 09:50 AM
Mandrake 9.1+postfix+spamassasin jriis Linux - Software 0 10-15-2003 10:37 AM
Postfix on Mandrake 9.1 JimMueller Linux - Newbie 1 05-28-2003 05:56 PM
Mandrake 9.0: Postfix 1.1.11 and Shorewall 1.3.7c Kejope Linux - Networking 1 04-29-2003 01:32 AM


All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration