LinuxQuestions.org
Help answer threads with 0 replies.
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 11-19-2010, 08:31 AM   #1
ibousman
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
Mail server configuration issues


Dears,
I'm running SUSE linux Server version 11. I want to configure mail server with postfix & cyrus-imap. For that, i have read many documents in Internet by i met issues. I'm running DNS in this server & it's ok
Now I cannont send mail through command line.

main.cf :

inet_protocols=all
biff=no
mail_spool_directory=
canonical_maps=hash:/etc/postfix/canonical
virtual_alias_maps=ldap:/etc/postfix/ldapuser_recipient_maps.cf, ldap:/etc/postfix/ldapvalias_maps_both.cf, ldap:/etc/postfix/ldapvalias_maps_member.cf, ldap:/etc/postfix/ldapvalias_maps_folder.cf, ldap:/etc/postfix/ldapvalias_maps_forward.cf
virtual_alias_domains=ldap:/etc/postfix/ldapvirtual_alias_domains.cf
relocated_maps=hash:/etc/postfix/relocated
transport_maps=ldap:/etc/postfix/ldaptransport_maps.cf
sender_canonical_maps=hash:/etc/postfix/sender_canonical
masquerade_exceptions=root
masquerade_classes=envelope_sender, header_sender, header_recipient
myhostname=ServerLinux.soacam.cm
delay_warning_time=1h
message_strip_characters=\0
program_directory=/usr/lib/postfix
inet_interfaces=all
masquerade_domains=, ldap:/etc/postfix/ldapmasquerade_domains.cf
mydestination=$myhostname, localhost.$mydomain, ldap:/etc/postfix/ldapmydestination.cf
defer_transports=
mynetworks_style=subnet
disable_dns_lookups=no
relayhost=
mailbox_command=
mailbox_transport= lmtp:unix:/var/lib/imap/socket/lmtp
strict_8bitmime=no
disable_mime_output_conversion=no
smtpd_sender_restrictions=ldap:/etc/postfix/ldapaccess.cf
smtpd_client_restrictions=ldap:/etc/postfix/ldapaccess.cf
smtpd_helo_required=yes
smtpd_helo_restrictions=
strict_rfc821_envelopes=no
smtpd_recipient_restrictions=permit_auth_destination, permit_mynetworks, reject_unauth_destination, reject
smtp_sasl_auth_enable=no
smtpd_sasl_auth_enable=no
smtpd_use_tls=yes
smtp_use_tls=no
smtp_enforce_tls=no
alias_maps=hash:/etc/aliases, ldap:/etc/postfix/ldapalias_maps_folder.cf, ldap:/etc/postfix/ldapalias_maps.cf
mailbox_size_limit=0
message_size_limit=10240000
smtp_tls_enforce_peername=no
smtpd_banner=$myhostname ESMTP $mail_name
smtp_sasl_security_options=noanonymous
content_filter=amavis:[127.0.0.1]:10024
mynetworks=127.0.0.0/8, 192.168.1.0/24, [::1]/128, [fe80::%eth0]/64
smtpd_tls_auth_only=no
smtpd_tls_cert_file=/etc/ssl/servercerts/servercert.pem
smtpd_tls_key_file=/etc/ssl/servercerts/serverkey.pem
smtpd_tls_CApath=/etc/ssl/certs
smtp_tls_per_site=ldap:/etc/postfix/ldapsmtp_tls_per_site.cf
home_mailbox=

please i'm waiting for reply.
Thanks.
 
Old 11-19-2010, 10:09 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ibousman View Post
Dears,
I'm running SUSE linux Server version 11. I want to configure mail server with postfix & cyrus-imap. For that, i have read many documents in Internet by i met issues. I'm running DNS in this server & it's ok
Now I cannont send mail through command line.

please i'm waiting for reply.
Thanks.
Well, if you don't tell us what problems/errors you're seeing, how can we help?? All you've told us is that you can't send mail.

Post what you're seeing, what problems you're having, and details about your environment.
 
Old 11-19-2010, 12:48 PM   #3
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
There appear to be a number of unnecessary configuration settings in your file.

I would recommend starting with a basic Postfix configuration. Once you have that working you can add features.

http://www.postfix.org/BASIC_CONFIGURATION_README.html

You may find Dovecot to be a useful IMAP server.

http://www.dovecot.org/
 
Old 11-30-2010, 03:03 AM   #4
ibousman
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
i have already read all these document, but the problem is always there. i am not able to create the mail folder of user...!
 
Old 11-30-2010, 06:30 AM   #5
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Do you currently have a basic Postfix configuration set up as per the document? If you do, please post the output from postconf -n.
 
Old 11-30-2010, 07:20 AM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
First of all, you DON'T create the mailbox of the user yourself. Postfix does it when it detects mail for that user. It will look for the folder and create it if it's missing. The reason why is because you have the mailbox configuration left blank in your main.cf:

Code:
home_mailbox = mail/
Make sure you correct your setting with what I posted above and that will resolve your mailbox issue. You just left it blank so Postfix didn't know how to handle / route messages. Also as stated before, never just paste your 'main.cf' as you did, you need to post the output of 'postconf -n' instead. Also logs from '/var/log/mail.log' are extremely helpful especially when you tell us what's not working.
 
Old 11-30-2010, 12:53 PM   #7
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
His problems are deeper than this. He has followed a tutorial but he still does not understand how to set up Postfix.

If he puts his mail server into production with this little understanding he will not be able to support it. He needs to start with a basic server and move forward from there.

Take a look at the settings in his main.cf.

Last edited by jamrock; 11-30-2010 at 12:56 PM.
 
Old 11-30-2010, 01:16 PM   #8
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
I agree. Your configuration is a mess and I don't like or recommend SuSE but that's another completely different thread. You need to start basic and build on a basic "working" configuration. I recommend you scrap your configuration and start fresh but I just gave you a quick answer above to your symptom which was it didn't create your users mailbox directory.
 
Old 12-04-2010, 02:55 AM   #9
ibousman
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
that 's postconf -n :
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
defer_transports =
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
home_mailbox = mail/
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = all
inet_protocols = all
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain
myhostname = ServerLinux.soacam.cm
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = no
smtp_tls_per_site = ldap:/etc/postfix/ldapsmtp_tls_per_site.cf
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cache
smtp_tls_session_cache_timeout = 3600s
smtp_use_tls = yes
smtpd_client_restrictions = permit_sasl_authenticated,
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = yes
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual

tks for your mail. untill now i cannot send a mail...!
 
Old 12-04-2010, 04:42 AM   #10
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Your message is unclear. Are you saying that you fixed the problem(s) or that you are still having problems? Simply posting a dump from your main.cf file tells us almost nothing. It looks like you have made some attempt to clean up your installation in the last few weeks, which is good. The problem of "I can't send mail" is just too vague and broad of a problem with too many causes for us to even tell you where to begin. You will need to begin addressing the issues, one at a time.

In order to do this you will need to identify what the errors are. You will need to examine your log files for this, e.g. mail.log and syslog. What happens when you try to restart postfix and or cyrus? What happens when you try to send mail or receive mail?

Also, we may need to know more about your configuration. What type of setup are you going for? Are you using virtual hosts or user accounts? Are you using a database backend? If so, what database.

From both personal experience and from the content of several forum threads, I can assure you that Jamrock is correct in that following a how-to document will never result in a successful mail server installation. You NEED to develop a better understanding of what you are doing. You appear to have taken steps towards this by reading. Do you have any questions regarding the material you have read that perhaps we could help to answer?
 
  


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
Mail Server Configuration veleno69 Linux - Networking 1 06-25-2007 09:00 AM
Mail Server Issues; Can't Send E-mail (using sendmail) Vegetarian Smoker Linux - Software 1 06-18-2006 02:16 PM
Mail Server Configuration hakmed Slackware 2 04-01-2005 05:14 PM
mail server and mail client setup issues htm Linux - General 1 03-16-2004 09:32 AM
mail server / junk mail configuration CtrlAltDel Linux - Software 2 01-16-2004 04:35 PM

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

All times are GMT -5. The time now is 04:25 PM.

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