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 |
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. |
All times are GMT -5. The time now is 12:18 PM. |