LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2006, 02:49 PM   #1
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Rep: Reputation: 15
Broken postfix


Earlier this afternoon, I had postfix working pretty well. After trying to make a few more changes, it stopped working again. Here's my /etc/postfix/main.cf

Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

virtual_alias_maps = hash:/etc/postfix/virtual
mydomain = example.com
myorigin = $mydomain
mydestination = $mydomain
mynetworks = 127.0.0.0/8 192.168.0.0/24
relay_domains = $mydomain otherdomain.com
relay_recipient_maps = hash:/etc/postfix/relay_recipients
relayhost =
inet_interfaces = all
and /etc/hosts
Code:
#$HOSTNAME is firewall
128.61.105.132  mail.example.com example.com firewall
127.0.0.1       localhost
192.168.0.2     ftp

# The following lines are desirable for IPv6 capable hosts
#::1     ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
/etc/postfix/relay_recipients has a list of addresses in the form
Code:
user1@domain.com OK
user2@domain.com OK
and /etc/aliases has
Code:
list: user1@domain.com, user2@domain.com
When it was working, I could mail list@example.com and it would send the message to all the addresses set in /etc/aliases as long as they were listed in /etc/postfix/relay_recipient. Now, I can't send to anyone in relay_recipient, only to those whose domain is listed by relay_domains. It says relay access denied. Also, the alias rules have stopped working. If I type
Code:
postmap /etc/alias
it gives me
Code:
postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?
for each entry. What went wrong?
 
Old 07-25-2006, 03:36 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
So, out of curiousity, what did you change just before it broke? I haven't used postfix in a while, but it looks fine to me.

Just saw your name on the post and figured I'd come take a look.
 
Old 07-25-2006, 03:59 PM   #3
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 15
I just remembered what I was doing. It was working, but there were some errors coming up in the logs, so I was trying to work on them. At the time, I was working on this one.

Code:
Jul 24 10:20:06 firewall sm-msp-queue[6823]: My unqualified host name (firewall) unknown; sleeping for retry
Jul 24 10:21:06 firewall sm-msp-queue[6823]: unable to qualify my own domain name (firewall) -- using short name
/etc/hosts was
Code:
127.0.0.1       localhost
127.0.0.1       firewall
192.168.0.2     ftpserver

# The following lines are desirable for IPv6 capable hosts
#::1     ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
and I changed it to
Code:
128.61.105.132  mail.example.com example.com firewall
127.0.0.1       localhost
192.168.0.2     ftpserver

# The following lines are desirable for IPv6 capable hosts
#::1     ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
Somewhere in there it stopped working, and changing it back didn't help.
 
Old 07-25-2006, 04:23 PM   #4
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
You want to postalias aliases, not postmap
 
  


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
X Is Broken carlosinfl Linux - General 7 07-24-2006 09:15 AM
Postfix - how do hosted domains download their mail from my postfix franschoek Linux - Software 1 04-01-2006 09:41 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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