LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2012, 07:37 AM   #1
Bob Fletcher
Member
 
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140

Rep: Reputation: 1
Postfix configuration


I am trying to configure Postfix following these instructions under Webmin.
When I try to reload postfix it says "Reloading Configuration -- Fail"

Here is my /etc/postfix/main.cf I have changed my actual domain to mydomain.net for security on upload to LQ.

What is wrong with it?

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.mydomain.net
mydomain = mydomain.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = nerciadragon.net
mydestination = mail.mydomain.net, mydomain.net
relayhost =
mynetworks = 127.0.0.0/8, 192.168.2.160/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

Last edited by Bob Fletcher; 07-03-2012 at 07:39 AM.
 
Old 07-03-2012, 09:55 AM   #2
mgai7755
Member
 
Registered: Apr 2011
Posts: 51

Rep: Reputation: 10
Quote:
Originally Posted by Bob Fletcher View Post
I am trying to configure Postfix following these instructions under Webmin.
When I try to reload postfix it says "Reloading Configuration -- Fail"
Sending us the logs generated by postfix - usually called /var/log/maillog or /var/log/mail; the exact pathname is defined in the /etc/syslog.conf file - would greatly help us to debug your problem.
 
Old 07-04-2012, 02:42 AM   #3
Bob Fletcher
Member
 
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by mgai7755 View Post
Sending us the logs generated by postfix - usually called /var/log/maillog or /var/log/mail; the exact pathname is defined in the /etc/syslog.conf file - would greatly help us to debug your problem.
Thanks for the reply. I have just installed Ubuntu server 12.04 so I am setting things up again. I am looking for something easier than postfix.
 
Old 07-09-2012, 03:36 PM   #4
Bob Fletcher
Member
 
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140

Original Poster
Rep: Reputation: 1
I got into such a mess that I reinstalled Ubuntu Server 12.04 this time postfix worked for me "Out Of The Box" What went wrong before I have no idea.
 
  


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
[SOLVED] postfix configuration shaik_rafi2009 Linux - Newbie 3 04-18-2011 02:08 PM
Fetchmail Mail Configuration And Postfix Configuration Senthilv Linux - Server 1 01-06-2011 01:47 AM
Postfix configuration lalitcoep Linux - Server 7 09-29-2010 08:02 PM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM
Postfix Configuration namit Linux - Server 1 02-18-2007 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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