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 10-07-2008, 04:39 PM   #16
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63

Remove both Sendmail (the MTA) and Postfix (the MTA) and then reinstall only Postfix.
 
Old 10-07-2008, 04:42 PM   #17
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Ok reinstalled Postfix I hope it's working now??

Answer to your question:
Code:
postmap -q kayasaman hash:/etc/postfix/aliases
postmap: fatal: open database /etc/postfix/aliases.db: No such file or directory
This might be the issue
 
Old 10-07-2008, 04:44 PM   #18
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
hmm that's odd;

I ran the same command on the working server and it came up with the same thing?? as in:

Code:
postmap: fatal: open database /etc/postfix/aliases.db: No such file or directory
 
Old 10-07-2008, 04:44 PM   #19
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Edit - reposted.

Just use "newaliases"

You alias file is in /etc, not /etc/postfix, and you don't postmap the .db

Last edited by billymayday; 10-07-2008 at 04:47 PM.
 
Old 10-07-2008, 04:47 PM   #20
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
ok well:

Code:
postmap -q kayasaman hash:/etc/aliases
returned nothing on both machines, (healthy and working) and (unhealthy and botched)
 
Old 10-07-2008, 04:48 PM   #21
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
main.cf file looks ok

Code:
# 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 (Debian/GNU)
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

# 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:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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 = gx110.optiplex-networks.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = gx110.optiplex-networks.com, localhost.optiplex-networks.com, localhost
relayhost =
mynetworks = 192.168.1.0/24 127.0.0.1
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
#content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
#inet_protocols = all
inet_protocols = all
however
 
Old 10-07-2008, 04:54 PM   #22
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
I found a package in my /usr/sbin called sensible-mda, I have no idea what it is or how it got there but I don't have it on my other machine so I removed and am gona see what the result of that is; if it was effecting Postfix in someway
 
Old 10-07-2008, 04:58 PM   #23
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The command would be "postmap /etc/aliases", but you can just use "newaliases"
 
Old 10-07-2008, 04:59 PM   #24
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
I just had a go at seeing if I could remove postfix to re-install it later; however postfix seems to be tied into the system like crazy??

Code:
# apt-get remove postfix
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  amavisd-new backuppc courier-imap courier-imap-ssl courier-pop
  courier-pop-ssl iwatch logcheck mailx mutt postfix postfix-mysql
logcheck and backuppc have nothing to do with Postfix??
 
Old 10-07-2008, 05:01 PM   #25
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Tried postmap /etc/aliases and result was same on both machines, so I'm guessing it doesn't have any significance.

Code:
postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 3: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 4: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 5: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 6: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 7: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 8: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 9: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 10: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 11: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 12: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 13: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 14: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 15: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 16: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 17: record is in "key: value" format; is this an alias file?
I am just trying to compare commands between healthy and unhealthy system so that if any difference is detected I can look as to why!

Last edited by kayasaman; 10-07-2008 at 05:03 PM.
 
Old 10-07-2008, 05:07 PM   #26
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do you have the newaliases command?

postmap is not for alaises - the postfix specific equivalent is "postallias"

Last edited by billymayday; 10-07-2008 at 05:09 PM.
 
Old 10-07-2008, 05:15 PM   #27
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
I typed in newaliases on both machines and it returned nothing each time?
 
Old 10-07-2008, 05:17 PM   #28
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
See post 26. newaliases is a sendmail package command that works for me because sendmail is installed by default in CentOS

Use "postalias /etc/aliases"
 
Old 10-07-2008, 05:26 PM   #29
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Quote:
because sendmail is installed by default in CentOS
It's the same for Debian I think you know from your Debian box. However something seems to be very wrong somewhere!

I tried using the command:
Code:
postalias /etc/aliases
and it did something, however the system still doesn't work. Maybe it's as Mr C. suggested that the sendmail is mangled??

But how to fix it since apt-get install sendmail installs the MTA and that's not what we want, maybe is it sendmail-cf?? As there is a package like that?
 
Old 10-07-2008, 05:34 PM   #30
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I believe postfix installs a "sendmail" binary because many packages expect one there by default. Don't confuse this with the full sendmail MTA. You don't want to install that.

The mail command is a case in point - it uses sendmail. Postfix simply foils it into thinking it's using the original sendmail package when in fact it isn't.

You will note there is a new /etc/aliases.db file now.

What do you mean the system still doesn't work?
 
  


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
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Postfix: help required to configure postfix to redirect email. Wheddod Linux - Software 3 08-20-2008 07:55 AM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 12:42 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM

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

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