Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-19-2010, 08:31 AM
|
#1
|
LQ Newbie
Registered: Nov 2010
Posts: 3
Rep:
|
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.
|
|
|
11-19-2010, 10:09 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,602
|
Quote:
Originally Posted by ibousman
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.
|
|
|
11-19-2010, 12:48 PM
|
#3
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
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/
|
|
|
11-30-2010, 03:03 AM
|
#4
|
LQ Newbie
Registered: Nov 2010
Posts: 3
Original Poster
Rep:
|
i have already read all these document, but the problem is always there. i am not able to create the mail folder of user...!
|
|
|
11-30-2010, 06:30 AM
|
#5
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
Do you currently have a basic Postfix configuration set up as per the document? If you do, please post the output from postconf -n.
|
|
|
11-30-2010, 07:20 AM
|
#6
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
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.
|
|
|
11-30-2010, 12:53 PM
|
#7
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
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.
|
|
|
11-30-2010, 01:16 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
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.
|
|
|
12-04-2010, 02:55 AM
|
#9
|
LQ Newbie
Registered: Nov 2010
Posts: 3
Original Poster
Rep:
|
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...!
|
|
|
12-04-2010, 04:42 AM
|
#10
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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?
|
|
|
All times are GMT -5. The time now is 05:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|