LinuxQuestions.org
Register a domain and help support LQ
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 05-11-2003, 07:21 AM   #1
timnew
LQ Newbie
 
Registered: May 2003
Posts: 19

Rep: Reputation: 0
Question Postfix Question


Hi,

I recently switched my computer to Redhat 9. I want to set up a postfix email server. I have a few different domain names with multiple email address' associated with both. I have a dedicated ip address. How do I do this? Is there any documentation that can walk me through the precess?

Tim
 
Old 05-11-2003, 07:54 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
A few destination domains or just domains your relay mail for?
man virtual will help you ...
 
Old 05-11-2003, 08:08 AM   #3
timnew
LQ Newbie
 
Registered: May 2003
Posts: 19

Original Poster
Rep: Reputation: 0
I'm not really sure what the difference between a destination domain and a domain I relay mail for is.
 
Old 05-11-2003, 08:09 AM   #4
timnew
LQ Newbie
 
Registered: May 2003
Posts: 19

Original Poster
Rep: Reputation: 0
what is man virtual?
 
Old 05-11-2003, 08:09 AM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Destination domain = your server is the final destionation. Relaying, let's say you relay mail for debian.org then I can connect to your SMTP server and send mail to debian.org, your smtp server accepts my mail (since it's configured to relay for debian.org) and sends it to the MX record of debian.org
 
Old 05-11-2003, 08:10 AM   #6
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Just run man virtual that's the man page of the "Postfix virtual domain mail delivery agent"!
 
Old 05-11-2003, 08:14 AM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
My Postfix configuration looks like that:
Code:
# --------------------------------------------------------------------
# base configuration
# --------------------------------------------------------------------
alias_database			= hash:/etc/aliases
alias_maps			= $alias_database
allow_percent_hack		= no
append_dot_mydomain		= no
biff				= no
#canonical_maps			= hash:/etc/postfix/canonical
command_directory		= /usr/sbin
daemon_directory		= /usr/lib/postfix
inet_interfaces			= 127.0.0.1, 192.168.84.82
myhostname			= example.server.net
program_directory		= /usr/lib/postfix
queue_minfree			= 26214400
setgid_group			= postdrop
tls_daemon_random_source	= dev:/dev/urandom
tls_random_source		= dev:/dev/urandom
# --------------------------------------------------------------------



# --------------------------------------------------------------------
# smtp outgoing
# --------------------------------------------------------------------
delay_warning_time		= 24h
#relayhost			= [example.relayhost.net]
#smtp_sasl_auth_enable		= yes
#smtp_sasl_password_maps	= hash:/etc/postfix/smtpauth_password
#smtp_sasl_security_options	= noanonymous
#smtp_tls_CAfile		= /etc/postfix/ssl/
#smtp_tls_certfile		= /etc/postfix/ssl/
#smtp_tls_keyfile		= /etc/postfix/ssl/
#smtp_tls_persite		= hash:/etc/postfix/tls_sites
#smtp_use_tls			= yes
transport_maps			= hash:/etc/postfix/transport
# --------------------------------------------------------------------



# --------------------------------------------------------------------
# smtp incomming
# --------------------------------------------------------------------
broken_sasl_auth_clients	= yes
disable_vrfy_command		= yes
local_recipient_maps		= $alias_maps,unix:passwd.byname
mydestination			= $myhostname
mynetworks			= 127.0.0.0/8
#permix_mx_backup_networks	= hash:/etc/postfix/mx_backup_networks
relay_clientcerts		= hash:/etc/postfix/relay_clientcerts
relay_domains			= hash:/etc/postfix/relay_domains
relay_recipient_maps		= hash:/etc/postfix/relay_recipient
#relocated_maps			= hash:/etc/postfix/relocated
smtpd_etrn_restrictions		= reject
smtpd_helo_required		= yes
smtpd_recipient_restrictions	=
	reject_non_fqdn_sender, 
	reject_non_fqdn_recipient,
	reject_unknown_sender_domain,
	reject_unknown_recipient_domain,
	permit_mynetworks,
#	permix_mx_backup,
	permit_sasl_authenticated,
	permit_tls_clientcerts,
	reject_unauth_destination,
	reject_sender_login_mismatch,
#	check_recipient_maps,
	reject_unauth_pipelining,
	reject_invalid_hostname,
	reject_non_fqdn_hostname,
	reject_rbl_client list.dsbl.org,
	reject_rbl_client proxies.blackholes.wirehub.net,
	reject_rbl_client proxies.relays.monkeys.com,
	reject_rbl_client relays.ordb.org,
	permit
smtpd_sasl_auth_enable		= yes
smtpd_sasl_local_domain		= $myhostname
smtpd_sasl_security_options	= noanonymous
smtpd_sender_login_maps		= hash:/etc/postfix/sender_login
smtpd_tls_CAfile		= /etc/postfix/ssl/CAcert.pem
smtpd_tls_cert_file		= /etc/postfix/ssl/cert.pem
smtpd_tls_key_file		= /etc/postfix/ssl/key.pem
smtpd_use_tls			= yes
swap_bangpath			= no
#virtual_maps			= /etc/postfix/virtual
# --------------------------------------------------------------------
It includes a lot of possible features, yet it's not optimized. I will do that next week. I support SMTP AUTH, relaying based on fingerprint of client certificates, RBL, sender address restriction, etc.

Last edited by markus1982; 05-11-2003 at 08:15 AM.
 
Old 05-11-2003, 08:29 AM   #8
timnew
LQ Newbie
 
Registered: May 2003
Posts: 19

Original Poster
Rep: Reputation: 0
You are going to hate me.

what is a virtual domain mail delivery agent?
what is a man page?
 
Old 05-11-2003, 08:35 AM   #9
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Just do man man and man virtual it answers your questions!
 
Old 05-11-2003, 08:43 AM   #10
timnew
LQ Newbie
 
Registered: May 2003
Posts: 19

Original Poster
Rep: Reputation: 0
I am denied access to /etc/postfix/main.cf

Do you know what that is all about?
 
Old 05-11-2003, 08:45 AM   #11
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Switch to root (su - root) and try again!
 
Old 05-11-2003, 08:46 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Usually root is the only person who can access /etc files. Make sure you are root, or another user who has access to it.

Cool
 
Old 05-11-2003, 08:47 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
As for a man page, you open up a terminal and type those commands:
man man
man virtual
And so on. They are manuals on whatever app you are looking up.

Cool
 
Old 05-11-2003, 09:15 AM   #14
timnew
LQ Newbie
 
Registered: May 2003
Posts: 19

Original Poster
Rep: Reputation: 0
You have been very helpful.

I think I am the root. I typed su - root and nothing happened, I still can't access etc/postfix/main.cf
 
Old 05-11-2003, 10:18 AM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
To find out if you are actually root you can use the program whoami, at the prompt, after you type su -, type:
whoami

And it will return which user you are, or root. If you are root, how are you trying to access the file? If you are trying to edit it, which editor? If you just want to view it, try using less:
less /etc/posfix/main.cf

HTH

Cool
 
  


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
Postfix question ncp Debian 1 11-29-2005 02:45 AM
[question]postfix shogun1234 Linux - Software 2 06-20-2005 12:48 AM
postfix question twk Linux - Networking 1 11-01-2004 02:52 PM
Postfix Question capkapak Linux - Software 3 01-20-2003 03:22 AM
Postfix question DavidPhillips Linux - General 1 02-18-2002 01:02 AM


All times are GMT -5. The time now is 11:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration