LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06: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, 06: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, 07: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, 07:09 AM   #4
timnew
LQ Newbie
 
Registered: May 2003
Posts: 19

Original Poster
Rep: Reputation: 0
what is man virtual?
 
Old 05-11-2003, 07: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, 07: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, 07: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 07:15 AM.
 
Old 05-11-2003, 07: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, 07: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, 07: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, 07: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, 07:46 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 07:47 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 08: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, 09:18 AM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 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
Open Source Consulting | Domain Registration