LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2004, 08:11 AM   #1
axa_aaa
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
Configuring postfix for single-user, dial-up machine


Hi,
I finally managed to set up postfix, fetchmail, procmail an mutt to work with each other, on stand-alone dial-up machine (no networks, gateways or something else, just stand-alone single user machine). Well actually, I've delayed mutt configuration because of the one additional problem I have with postfix, that I would like to ask you for advice.

Postfix is, of course, installed and working, but only with one account. That is, (by using "Installing a sophisticated e-mail environment for systems with only a dial-up Internet connection" tutorial) I added to main.cf the following:
#my hostname, yes it's slackware distro
myhostname = darkstar
myorigin = $myhostname
mydestination = darkstar.example.net, localhost.example.net, localhost.localdomain, darkstar, darkstar.localdomain, localhost
mynetworks = 127.0.0.0/8, 192.168.1.0/24
#my isp's server for sending mail through
relayhost = mail.gmx.net
sender_canonical_maps = hash:/etc/postfix/sender_canonical
alias_maps = hash:/etc/postfix/aliases
mail_spool_directory = /var/spool/mail

and made sender_canonical in following way:
axa_aaa@darkstar.example.net user_axa@gmx.net
axa_aaa@localhost.example.net user_axa@gmx.net
axa_aaa@darkstar.localdomain user_axa@gmx.net
axa_aaa@localhost.localdomain user_axa@gmx.net

Of course, after that, I run postmap for both sender_canonical and aliases (it was not in ndb format)

And, as already written, it is working as expected, but, again only with single account.
I have two more accounts at different servers that I would like to use. Question is, how can I set up postfix, so I can send my mail through one of the following servers:
mail.gmx.net
smtp.hotpop.com
smtp.some_other_host.com

and change my envelope address from axa_aaa@darkstar.example.net to respectively to:
user_axa@gmx.net
axa_user@hotpop.com
user_axa_aaa@some_other_host.com

??

Should I try to add all these servers in main.cf like:
relayhost = mail.gmx.net
relayhost = smtp.hotpop.com
relayhost = smtp.some_other_host.com

Then delete file sender_canonical, and then finally, when I want to send my mail, through mutt (or some other mua) to specifically assign _from_ field? Would this work in desired way, or perhaps, there is some more "elegant" way for handling this kind of situation?

Thank you.
 
  


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
configuring two NIC's on single machine b0nd Slackware 4 10-06-2005 02:51 PM
transparent proxy on a single machine kscott121 Linux - Networking 2 06-27-2004 09:37 PM
Linux Dial-in Server Single Phone Line treedstang Linux - Hardware 0 06-04-2004 04:30 PM
Postfix on dial-up, single-user machine axa_aaa Linux - General 1 03-09-2004 09:00 AM
Setting-up dial-in & dial-up server in same machine sebastianjustin Linux - Networking 1 09-20-2003 03:35 PM


All times are GMT -5. The time now is 10:45 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