LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-15-2006, 05:59 AM   #1
mmoor
Member
 
Registered: May 2006
Distribution: Fedora core 5
Posts: 37

Rep: Reputation: 15
postfix and dns..


Ohh je, next trouple.

postfix installed runs great on localhost.. now we have a problem huston.

dns entry on a extern dns host.
mail.xxx.com IN MX 210.222.xxx.xxx

local Router:
194.xxx.xxx.xxx

Local Network:
192.xxx.xxx.xxx

Tryed to set under relay host (mail.xxx.xom)
and under proxy the gateway, and under inet_interface the gateway, and under both the mail.xxx.xom
and also the relay_host all 3 ip's.

But simple postfix refuses to accept mail.

Any Hint in what direction i could walk will really help.
 
Old 05-15-2006, 07:17 AM   #2
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
Have you set mynetworks correctly?

Also, if you are relaying through mail.xxx.com, I think you only need to set

relayhost = mail.xxx.com

what are your settings for inet_interfaces, etc.

Where are you sending mail from? If you are sending from this box, you need localhost in inet_interfaces. Are you really wanting to relay for mail.xxx.com?

It would help if you posted the relevant sections on main.cf
 
Old 05-15-2006, 07:40 AM   #3
mmoor
Member
 
Registered: May 2006
Distribution: Fedora core 5
Posts: 37

Original Poster
Rep: Reputation: 15
oky..

mail to user@bla.com

dns entry on a extern dns host.
mail.bla.com IN MX 214.001.001.001

at my home.
Router on a DSL with a static IP
214.001.001.001

I gues MX need to point to my router.

Then NAT on the router what forwards port request on 25 to
192.168.178.2

On this box, linux runs. with Postfix. Apache and mysql. apache runs great, rest too, except that silly postfix

under - relay_host = mail.bla.com
inet_interface = '' nothing at the moment.

------------------- << main.cf --- >>>>>>>>>>>>
#soft_bounce = no

queue_directory = /var/spool/postfix

myhostname = uranus.local
mydomain = testserv.local

myorigin = $myhostname

#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

mydestination = $myhostname, localhost.$mydomain, localhost, mail.$mydomain

#local_recipient_maps =

smtpd_recipient_restrictions=permit_mynetworks, check_sender_access hash:/etc/postfix/access, check_client_access hash:/etc/postfix/pop-before-smtp, check_relay_domains

unknown_local_recipient_reject_code = 550


#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

mynetworks = 192.168.178.0/24, 127.0.0.0/8

relay_domains = mail.bla.com, $mydestination

relayhost = mail.bla.com

#relay_recipient_maps = hash:/etc/postfix/relay_recipients

#in_flow_delay = 1s

#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

virtual_maps = mysql:/etc/postfix/forward.mysql
virtual_mailbox_base = /var/spool/maildirs
virtual_uid_maps = mysql:/etc/postfix/ids.mysql
virtual_gid_maps = mysql:/etc/postfix/ids.mysql
virtual_mailbox_maps = mysql:/etc/postfix/mailbox.mysql

#recipient_delimiter = +

-------------- end of file -----------

Last edited by mmoor; 05-15-2006 at 09:07 AM.
 
Old 05-15-2006, 09:06 AM   #4
mmoor
Member
 
Registered: May 2006
Distribution: Fedora core 5
Posts: 37

Original Poster
Rep: Reputation: 15
okay got it to work.. but somewhere i have a an error in the virtual tables..
As soon i uncoment them, conection get refused But it seems i can't figure it out.
 
Old 05-15-2006, 10:25 AM   #5
mmoor
Member
 
Registered: May 2006
Distribution: Fedora core 5
Posts: 37

Original Poster
Rep: Reputation: 15
even if i set it up like this it starts to refuse.

virtual_maps = hash:/etc/virtual

-- virtual file ---
test.com anything
-------------------------
tryed also via
-- virtual file ---
mail.test.com anything
-------------------------
 
Old 05-16-2006, 03:59 AM   #6
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
Was the problem something to do with "mydestination"? I think you have a logical loop there.

Dumb question - you are converting the virtual file (it's either postmap or postalias, I don't use virtual maps myself).

www.postfix.org has great documentation on all this stuff

Last edited by billymayday; 05-16-2006 at 04:05 AM.
 
Old 05-16-2006, 05:01 AM   #7
mmoor
Member
 
Registered: May 2006
Distribution: Fedora core 5
Posts: 37

Original Poster
Rep: Reputation: 15
dunno.. if i use hash:/bla bla
it works
if i try to use mysql it dosent, but postconf -m shows mysql..
anyway, i can leave with hash: looks like or at least i have to
 
Old 05-16-2006, 06:32 AM   #8
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 guess you've looked at

http://www.postfix.org/MYSQL_README.html

but if not, here it is
 
Old 05-17-2006, 01:16 AM   #9
mmoor
Member
 
Registered: May 2006
Distribution: Fedora core 5
Posts: 37

Original Poster
Rep: Reputation: 15
yep.. postconf -m lists mysql as well.. so should be compiled in. the formats of the tables are correct also..
 
  


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 and DNS Sapient Linux - Networking 17 12-29-2005 11:20 AM
Postfix DNS issue collen Linux - Networking 1 11-30-2004 12:59 PM
DNS and Postfix problem iainr Linux - Software 1 10-13-2004 03:15 PM
Postfix+fetchmail+DNS? DavidHayes Linux - Networking 4 01-29-2004 01:51 PM
Postfix+fetchmail+DNS? DavidHayes Linux - Networking 2 01-27-2004 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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