LinuxQuestions.org
Help answer threads with 0 replies.
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 02-26-2008, 11:43 AM   #1
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Rep: Reputation: 15
postfix problem


hello my frends..

First of all thank you very much for replying my prior problems.
Now i m facing new problem bt i m comfusing that really this is a problem or not?

I confiugured postfix with dovecot on fedora core 6 and working properly on local network. Now i need to make my postfix as a relay server for my clients from outside network with outlook express. So i am searching documentation for that, some documents i find and try to configure that type but dosent work properly

when i m trying to telnet mysite 25 then it shows me like that..
ehlo dharanetworks.com
250-mysite.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-XXXXXXXA
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

I read that if we use TLS support and all configuration is okey then it shows like
S: 220 mail.example.com ESMTP Postfix (1.1.5)
C: EHLO example.com
S: 250-mail.example.com
S: 250-PIPELINING
S: 250-SIZE 10240000
S: 250-VRFY
S: 250-ETRN
S: 250-STARTTLS
S: 250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI
S: 250-AUTH=PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI
S: 250-XVERP
S: 250 8BITMIME
C: STARTTLS
S: 220 Ready to start TLS

but it dosent shows AUTH field and also dosent shows starttls, so plese help me.. i get headache for solving this..
please help me out..
thank in advance..


i read above information at below site.
http://postfix.state-of-mind.de/patr...s_support.html

Last edited by ayush1440; 02-26-2008 at 11:45 AM.
 
Old 02-26-2008, 12:26 PM   #2
Deleriux
Member
 
Registered: Nov 2003
Posts: 89

Rep: Reputation: 16
You need to enable sasl to do that. Depending on how your mailboxes are setup changes this config.

Firstly install saslauthd.

Code:
yum install cyrus-sasl

Something like this in your main.cf

[code
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,reject
In /etc/sysconfig/saslauthd
Code:
MECH=pam
If your mailboxes are for actual users that should enable sasl.

Reload postfix to give it a try.
 
Old 02-27-2008, 04:38 AM   #3
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Deleriux View Post
You need to enable sasl to do that. Depending on how your mailboxes are setup changes this config.

Firstly install saslauthd.

Code:
yum install cyrus-sasl

Something like this in your main.cf

[code
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,reject
In /etc/sysconfig/saslauthd
Code:
MECH=pam
If your mailboxes are for actual users that should enable sasl.

Reload postfix to give it a try.
I have done as your instruction after that when im trying to telnet myserver and then sending mail from outside or local networks but now new error has occured..

the error is
220 *******************************
ehlo mysite.com
250-mysite.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-XXXXXXXA
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: admin
250 2.1.0 Ok
rcpt to: myemail@gmail.com
451 4.3.5 Server configuration error
rcpt to: myemail@gmail.com
451 4.3.5 Server configuration error


I am sending my postconf -n detail

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = mysite.com
myhostname = mysite.com
mynetworks = 192.168.1.0/24, 127.0.0.0/8,
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
relay_domains = adsl-75-9-12-252.dsl.chcgil.sbcglobal.net
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks. reject_unauth_destination,
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550


detail of rpm -qa cyrus*
cyrus-sasl-plain-2.1.22-4
cyrus-sasl-2.1.22-4
cyrus-sasl-lib-2.1.22-4
cyrus-sasl-gssapi-2.1.22-4
cyrus-sasl-devel-2.1.22-4
cyrus-sasl-md5-2.1.22-4


Now Please tell me if any mistake done by me..

thank you very much for your replying..
 
Old 02-27-2008, 04:46 AM   #4
Deleriux
Member
 
Registered: Nov 2003
Posts: 89

Rep: Reputation: 16
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550

Remove these lines.
Restart apache.
Make sure you have started saslauthd too.
 
Old 02-27-2008, 05:49 AM   #5
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Deleriux View Post
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550

Remove these lines.
Restart apache.
Make sure you have started saslauthd too.
I have done which u told me. But still it shows server configuration error and what about tls security?.. I cant user both tls and smtp_auth same time..?
 
Old 02-27-2008, 06:02 AM   #6
Deleriux
Member
 
Registered: Nov 2003
Posts: 89

Rep: Reputation: 16
Yes you can - but you should tackle one problem at a time. Enabling SASL will let your outbound users connect and send email through your system.

You should check your maillog to see whats happening when postfix is ran.
 
Old 02-29-2008, 10:08 AM   #7
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Original Poster
Rep: Reputation: 15
hello my frend.

I am telling you my scenario cause u understand what i want to do?
Currently i m sitting on India office and I just completed configuration of US main office. That office want to serve more then 100 mail account for their client in USA and their client want to access their mail anywhere in the world also can send email through thia Server.

Now can u advise me that how could this possible. I configured postfix and dovecot with smtp-auth and TLS support But still cannot access mail here INDIA office through OUTLOOK EXPRESS. But now outlook express cannot fetch user mail or cannot send it. So please help me which method and which security i should use for running smoothly USA mail server without becomming OPEN RELAY..

Please help me in brief..

Thank you so much for taking intrest in my forum..
Again Thank you .
 
  


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 problem!!or not?? sunny_5252 Slackware 1 01-14-2008 03:35 PM
Postfix Problem arjanhs Debian 0 01-09-2007 05:42 AM
Postfix problem palio.misho Linux - Networking 0 11-19-2006 11:22 AM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 09:12 PM
problem with postfix and db.4.1.25 cron19 Linux - Software 1 10-06-2003 11:02 AM


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