LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 03-09-2004, 04:55 AM   #1
axa_aaa
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
Postfix on dial-up, single-user 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.
 
Old 03-09-2004, 08:00 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring two NIC's on single machine b0nd Slackware 4 10-06-2005 01:51 PM
transparent proxy on a single machine kscott121 Linux - Networking 2 06-27-2004 08:37 PM
Linux Dial-in Server Single Phone Line treedstang Linux - Hardware 0 06-04-2004 03:30 PM
Configuring postfix for single-user, dial-up machine axa_aaa Linux - Newbie 0 03-08-2004 07:11 AM
Setting-up dial-in & dial-up server in same machine sebastianjustin Linux - Networking 1 09-20-2003 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:39 PM.

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
Open Source Consulting | Domain Registration