LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2011, 05:18 AM   #1
yovkoi
Member
 
Registered: Jun 2010
Posts: 37

Rep: Reputation: 0
postfix does not send emails


Hey, guys I'm stuck with postfix. It cannot send emails and I cannot find out why! smtpPort 25/tcp is open. I can telnet localhost with 25, but not the localhosts IP(192.168.1.15). Sendmail is OFF. Here is the main.cf file!

**********************************************************
# 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 = pldwebmail

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 = pldweb0003
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = pldweb0003, localhost.localdomain, , localhost
relayhost =
mynetworks = 192.168.1.0/24, 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox =
smtpd_sasl_auth_enable = no
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
smtpd_sasl_authenticated_header = no
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = no
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
smtpd_sender_restrictions =
mailbox_command =
smtp_use_tls = no
smtpd_tls_received_header = no
smtpd_tls_mandatory_protocols = SSLv3, TLSv1
smtpd_tls_mandatory_ciphers = medium
smtpd_tls_auth_only = no
tls_random_source = dev:/dev/urandom
***************************************************************************


Any suggestions!?
 
Old 02-08-2011, 05:25 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Any pointers in the logfiles?

Kind regards
 
Old 02-08-2011, 05:31 AM   #3
yovkoi
Member
 
Registered: Jun 2010
Posts: 37

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Any pointers in the logfiles?

Kind regards


/var/log/mail.err:
**************************************************************
Feb 8 11:19:42 pldweb0003 postfix/master[15363]: fatal: bind 0.0.0.0 port 25: Address already in use
Feb 8 11:26:48 pldweb0003 postfix[15476]: fatal: dictionary mail_dict: macro processing error
Feb 8 11:27:24 pldweb0003 postfix/master[15584]: fatal: bind 0.0.0.0 port 25: Address already in use
Feb 8 11:31:52 pldweb0003 postfix[15688]: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 192.168.1.15
Feb 8 11:33:41 pldweb0003 postfix/master[15798]: fatal: bind 0.0.0.0 port 25: Address already in use
Feb 8 11:34:32 pldweb0003 sm-mta[15829]: NOQUEUE: SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory
Feb 8 12:00:45 pldweb0003 postfix/master[16178]: fatal: bind 0.0.0.0 port 25: Address already in use
Feb 8 12:01:51 pldweb0003 sm-mta[16188]: NOQUEUE: SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory
Feb 8 12:07:26 pldweb0003 postfix/master[16322]: fatal: bind 0.0.0.0 port 25: Address already in use
Feb 8 12:15:05 pldweb0003 sm-mta[16386]: NOQUEUE: SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory
**************************************************************************************************** *******
 
Old 02-08-2011, 05:46 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
fatal: bind 0.0.0.0 port 25: Address already in use
Find out what was running on port 25 and shut it down.
Quote:
hash map "access": missing map file /etc/mail/access.db: No such file or directory
What is the output from
Code:
postfix check
Kind regards
 
Old 02-08-2011, 06:13 AM   #5
yovkoi
Member
 
Registered: Jun 2010
Posts: 37

Original Poster
Rep: Reputation: 0
My, my, my! This is so funny - hahhaha
I don't know how that happened but:

1. I was missing postfix as app but had the deamon
2. I've stopped sendmail but it had continued working on 25/tcp
3. Somehow I was missing /etc/mail/accesses.db as it comes with sendmail

I had to reinstall both sendmail and postfix and then stop sendmail on all levels - it worked out! I can now send emails!
Thanks!



Quote:
Originally Posted by repo View Post
Find out what was running on port 25 and shut it down.

What is the output from
Code:
postfix check
Kind regards

Last edited by yovkoi; 02-08-2011 at 06:19 AM.
 
  


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 send emails from a subnet, how to config? bzzz Linux - Server 2 11-15-2009 08:52 AM
postfix can send but cannot receive emails rmihai Linux - Server 9 05-02-2009 10:12 AM
Postfix - send emails at a given time silviap Linux - Software 2 04-27-2009 07:55 AM
Postfix trying to send emails internally Swanny Linux - Software 8 11-21-2007 01:19 PM
Postfix problems ! - can send but not receive emails. OzTEXS Linux - Server 9 05-05-2007 09:06 AM

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

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