LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 09-12-2005, 10:24 AM   #1
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Rep: Reputation: 30
postfix - main.cf & config


Hello.
I am trying to setup postfix mailserver.
My server is on Mandriva 2005.
eth0 is WAN with static IP
eth1 is LAN - 192.168.0.0/24

I have installed the following packages :

# Mandriva 2005LE Operating System
# postfix-2.1.5-6mdk
# fetchmail-6.2.5-10mdk
# fetchmail-daemon-6.2.5-10mdk
# procmail-3.22-5mdk
# metamail-2.7-11mdk
# courier-imap--3.0.8-5mdk
# courier-imap-pop-3.0.8-5mdk
***********************************************

Here is what I have achieved so far :

[varun@saamail ~]$ telnet localhost 25
Trying 127.0.0.1...
Connected to saamail.saice.edu (127.0.0.1).
Escape character is '^]'.
220 saamail.saice.edu ESMTP Postfix (2.1.5) (Mandrakelinux)
quit
221 Bye
Connection closed by foreign host.
******************************************

[varun@saamail ~]$ telnet localhost 110
Trying 127.0.0.1...
Connected to saamail.saice.edu (127.0.0.1).
Escape character is '^]'.
+OK Hello there.
quit
+OK Better luck next time.
Connection closed by foreign host.
*****************************************

[root@saamail varun]# telnet saamail.saice.edu smtp
Trying 127.0.0.1...
Connected to saamail.saice.edu (127.0.0.1).
Escape character is '^]'.
220 saamail.saice.edu ESMTP Postfix (2.1.5) (Mandrakelinux)
HELO smtp.vsnl.net
250 saamail.saice.edu
MAIL From: varun_saa@vsnl.net
250 Ok
RCPT To: varun@saice.edu
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Hello, Bob!
Love, Varun.

.
250 Ok: queued as F20EB1BDBF
QUIT
221 Bye
Connection closed by foreign host.
[root@saamail varun]#
**************************************

My main.cf file :
-------------------------------------------------------------------------------------------------------------------
# These are only the parameters changed from a default install
# see /etc/postfix/main.cf.dist for a commented, fuller version of this file.

# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.5/samples
html_directory = /usr/share/doc/postfix-2.1.5/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
myhostname = saamail.saice.edu
mydestination = $myhostname, localhost.$mydomain
mydomain = saice.edu
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
queue_directory = /var/spool/postfix
mail_owner = postfix
relayhost = smtp.saice.edu

# User configurable parameters

inet_interfaces = $myhostname,localhost
mynetworks = 127.0.0.0/8, 192.168.1.0/24
mynetworks_style = host
delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrakelinux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
virtual_maps = hash:/etc/postfix/virtual
canonical_maps = hash:/etc/postfix/canonical
------------------------------------------------------------------------------------------------------------------------

Please let me know any correction that I need to make in main.cf

How and where do you enter mail account ?

What are the next few steps so that I am able to create an account
in Kmail - varun@saice.edu and send a mail.

Thanks in advance

Varun
 
Old 09-12-2005, 11:15 AM   #2
abrooks29
Member
 
Registered: May 2005
Location: Tennessee USA
Distribution: CentOS/Solaris(sparc)/Mandriva
Posts: 43

Rep: Reputation: 15
Take a look at this http://www.jennings.homelinux.net/ma...er_config.html
Setting up a postfix, fetchmail, and courier-imap server is pretty easy but you need to understand what everything is doing. The postfix website has some good docs and the above link will get you started.
 
  


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 & cyrus IMAP config kernelvn Linux - Networking 0 07-10-2005 11:03 PM
Postfix config & test linuxkid Mandriva 2 02-15-2005 01:20 AM
Some packages appear on the main menu & others don't? May1950 Linux - Newbie 3 02-24-2004 03:32 PM
postfix main.cf illtbagu Linux - Software 8 07-21-2003 11:35 PM
POSTFIX main.cf question tuantran Linux - Networking 2 06-16-2002 05:41 PM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration