LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-01-2007, 02:34 AM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Rep: Reputation: 15
POSTFIX setup on Mandriva 2007


Hi guys,

I want to run my own SMTP server on Mandriva Linux. I want to setup postfix. I went through the installations and it seems to be working just fine:

[alireza@localhost ~]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
220 server1.alirezanit.net ESMTP Postfix (2.3.3) (Mandriva Linux)
ehlo localhost
250-server1.alirezanit.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.


I setup the SSL stuff and everything. Below you can see the main.cf file contents.

The problem is, when I try to send an email using postfix, it doesn't go through. It gets queued and gets stuck there:

[alireza@localhost ~]$ mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1CD3C8C077 497 Fri Jun 1 00:18:37 ***@****
(connect to barracuda.sfu.ca[142.58.101.50]: Connection timed out)
***@****

1077E8C07D 659 Fri Jun 1 00:20:51 ***@****
(connect to barracuda.sfu.ca[142.58.101.50]: Connection timed out)
***@****

16CD08C07E 654 Fri Jun 1 00:21:20 ***@****
(connect to barracuda.sfu.ca[142.58.101.50]: Connection timed out)
***@****

-- 2 Kbytes in 3 Requests.
[alireza@localhost ~]$


NOTE: ***@**** are in place of actual email addresses.

Can anybody tell me why this isn't working? Maybe I should relay my messages to my ISP's SMTP server? If yes, can somebody tell me how, plesae?

Thank you


MAIN.CF FILE CONTENTS:

# Please be sure to read the /usr/share/doc/postfix-*/README.MDK file
# to learn about differences from stock postfix to Mandriva package.
# This file contains 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.3.3/README_FILES
html_directory = /usr/share/doc/postfix-2.3.3/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix

# User configurable parameters

inet_interfaces = all
mynetworks_style = host
#delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
mydomain = alirezanit.net
myhostname = server1.$mydomain
mydestination = /etc/postfix/local-host-names, localhost.alirezanit.net
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
 
Old 06-01-2007, 03:03 AM   #2
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
I don't know about the mdk specific setup or patches, but I think you should explore the 2 following tracks to solve your problem :

1) set the "myorigin" parameter to something that exists on the internet
2) set the "relayhost" parameter to your ISP smtp server

Also, make a "tail -f" on your postfix log file to see what's happening when it tries to send mail to the outside world.

If you still have problems, go to http://www.postfix.org/documentation.html and read the documentation there. It's wonderful and should answer all your questions. If it still doesn't work, well read again the docs...

HTH
Flupke
 
  


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
upgraded mandriva from 2007.0 to 2007.1 and HAL refuses to start+lilo-graphic gone hari_seldon99 Linux - Software 1 05-27-2007 01:29 PM
Postfix not working with Ispconfig on Mandriva 2007.0 myxpc Linux - Software 1 05-20-2007 11:02 AM
LXer: The Perfect Desktop - Mandriva 2007 Spring Free (Mandriva 2007.1) LXer Syndicated Linux News 0 05-10-2007 02:01 PM
Cingular 3G - Sierra Wireless 860 - Mandriva 2007.1 - How To Configure 3G on Mandriva wpennington Mandriva 0 04-27-2007 06:41 PM
LXer: The Perfect Setup - Mandriva 2007 Free Edition LXer Syndicated Linux News 0 10-15-2006 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:14 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