LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-04-2008, 05:08 PM   #1
mewhocorrupts
LQ Newbie
 
Registered: Jun 2005
Location: Colorado
Distribution: Ubuntu, Debian 3.1, OSX
Posts: 8

Rep: Reputation: 0
Postfix conf problem, almost got it... :)


So I've been at this thing for a bit now, and I have it down to a single issue (which may or may not be a combination of multiple problems). I can send/receive from within my own domain, and send to external domains, all without problems. The only complication remaining is when I try to send email to my domain from an external address. I have tried from a Yahoo, Hotmail, and corporate account, all to no avail.

Here is my postconf -n:
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
mailbox_size_limit = 0
mydestination = MyDomain.com, localhost, localhost.$myorigin, mail.MyDomain.com
mydomain = MyDomain.com
myhostname = indie
mynetworks_style = host
myorigin = $mydomain
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
I'm sure a portion of it is incorrect, but for all of my trying, I am yet to produce a reason why it won't receive mail. I removed SpamAssassin, and check to make sure that the SMTP ports weren't being blocked. I've also contacted my provider, and checked to ensure that nothing on their end was preventing mail from coming through.

Any ideas? I'll try just about anything at this point.


Thanks much,

Kit
 
Old 02-04-2008, 06:23 PM   #2
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
I just setup Postfix on Debian 4.0 directly on my home ISP LAN (RoadRunner) and it works perfect!

Here is what I have:

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
mydestination = carlwill.com, swordfish.carlwill.com, localhost.carlwill.com, localhost
myhostname = swordfish.carlwill.com
mynetworks = 192.168.1.0/24, 192.168.2.0, 127.0.0.0/8
myorigin = carlwill.com
recipient_delimiter = +
relay_domains = carlwill.com
relayhost = 
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Linux)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
 
Old 02-04-2008, 07:16 PM   #3
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
Can you post the relevant section of your log when you attempt to receive a message?
 
Old 02-04-2008, 07:20 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
/var/log/mail.err mail.info
 
Old 02-04-2008, 08:30 PM   #5
mewhocorrupts
LQ Newbie
 
Registered: Jun 2005
Location: Colorado
Distribution: Ubuntu, Debian 3.1, OSX
Posts: 8

Original Poster
Rep: Reputation: 0
There are thousands of lines of the following:

Code:
Feb  4 10:37:15 indie postfix/smtpd[15689]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Feb  4 10:38:16 indie postfix/smtpd[15912]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Feb  4 10:39:17 indie postfix/smtpd[16232]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
I checked that field -- smtpd_recipient_restrictions -- and added one of the referenced filters.

Edit: Well... that was anticlimactic. I added "check_relay_domains" to the filter, and behold, it worked fine. Why does it require a denial filter, when permit_mynetworks was already present?

Last edited by mewhocorrupts; 02-04-2008 at 08:39 PM. Reason: Corrected the problem
 
Old 02-09-2008, 04:03 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
To prevent becoming an open relay.
 
  


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
Need Postfix SMTP xinetd.conf example please loydb Mandriva 0 11-12-2004 10:52 AM
postfix+cyrus-sasl+impd installation conf..help Robin01 Linux - Newbie 0 02-29-2004 05:24 PM
postfix conf. over webmin tutorial? huseyin Linux - Software 1 11-14-2003 06:51 PM
Spamassassin conf with fetchmail, postfix, procmail, kmail iihay Linux - Networking 0 05-25-2003 09:03 AM

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

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