LinuxQuestions.org
Help answer threads with 0 replies.
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 12-14-2003, 07:32 AM   #1
paulten
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Distribution: Debian unstable, Redhat 8.0 7.2
Posts: 26

Rep: Reputation: 15
Postfix Forward problem


Hi all.

I'm having a problem with Postfix and forwarding mail.
Using Postfix with Mysql and amavisd-new.
I have 3 tables in my DB : 1-aliases, 2-mailbox, 3-domain.
I add a alias for :
alias@intrahouse.by.com -> paul@tenfjord.net

And when I send a message to alias@intrahouse.by.com I see this in the log :

Code:
Dec 14 14:20:25 [postfix/smtpd] connect from paul.tenfjord.net[81.26.33.19]
Dec 14 14:20:25 [postfix/smtpd] 51324BA406: client=paul.tenfjord.net[81.26.33.19]
Dec 14 14:20:25 [postfix/smtpd] warning: restriction reject_maps_rbl is going away. Please use reject_rbl_client <domain> instead
Dec 14 14:20:25 [postfix/cleanup] 51324BA406: message-id=<200312141421.21235.paul@intrahouse.no>
Dec 14 14:20:25 [postfix/qmgr] 51324BA406: from=<paul@intrahouse.no>, size=874, nrcpt=1 (queue active)
Dec 14 14:20:25 [postfix/smtpd] disconnect from paul.tenfjord.net[81.26.33.19]
Dec 14 14:20:25 [postfix/smtpd] connect from localhost[127.0.0.1]
Dec 14 14:20:25 [postfix/smtpd] 789D9BA40D: client=localhost[127.0.0.1]
Dec 14 14:20:25 [postfix/cleanup] 789D9BA40D: message-id=<200312141421.21235.paul@intrahouse.no>
Dec 14 14:20:25 [postfix/qmgr] 789D9BA40D: from=<paul@intrahouse.no>, size=1324, nrcpt=1 (queue active)
Dec 14 14:20:25 [postfix/smtpd] disconnect from localhost[127.0.0.1]
Dec 14 14:20:25 [postfix/smtp] 51324BA406: to=<paul@tenfjord.net>, orig_to=<alias@intrahouse.by.com>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=25364-07, from MTA: 250 Ok: queued as 789D9BA40D)
Dec 14 14:20:25 [postfix/smtp] 789D9BA40D: to=<paul@tenfjord.net>, relay=mail.pcsupport.no[81.26.32.130], delay=0, status=sent (250 Message queued)
Everything looks fine but the mail never gets to my mailbox
If I try to remove the content_filter=** in main.cf I see the same log message.

But check this, when I set up a alias :
paul@gentoo.intrahouse.no -> paul@tenfjord.net
And "myhostname = gentoo.intrahouse.no" it works like a charm! What am I missing here?!
This is from the log when I send with paul@gentoo.intrahouse.no, the log looks the same.

Code:
Dec 14 14:16:23 [postfix/smtpd] connect from paul.tenfjord.net[81.26.33.19]
Dec 14 14:16:23 [postfix/smtpd] E28A5BA406: client=paul.tenfjord.net[81.26.33.19]
Dec 14 14:16:23 [postfix/smtpd] warning: restriction reject_maps_rbl is going away. Please use reject_rbl_client <domain> instead
Dec 14 14:16:24 [postfix/cleanup] E28A5BA406: message-id=<200312141417.20131.paul@intrahouse.no>
Dec 14 14:16:24 [postfix/qmgr] E28A5BA406: from=<paul@intrahouse.no>, size=881, nrcpt=1 (queue active)
Dec 14 14:16:24 [postfix/smtpd] disconnect from paul.tenfjord.net[81.26.33.19]
Dec 14 14:16:24 [postfix/smtpd] connect from localhost[127.0.0.1]
Dec 14 14:16:24 [postfix/smtpd] 17097BA40D: client=localhost[127.0.0.1]
Dec 14 14:16:24 [postfix/cleanup] 17097BA40D: message-id=<200312141417.20131.paul@intrahouse.no>
Dec 14 14:16:24 [postfix/qmgr] 17097BA40D: from=<paul@intrahouse.no>, size=1331, nrcpt=1 (queue active)
Dec 14 14:16:24 [postfix/smtpd] disconnect from localhost[127.0.0.1]
Dec 14 14:16:24 [postfix/smtp] E28A5BA406: to=<paul@tenfjord.net>, orig_to=<paul@gentoo.intrahouse.no>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=25440-06, from MTA: 250 Ok: queued as 17097BA40D)
Dec 14 14:16:24 [postfix/smtp] 17097BA40D: to=<paul@tenfjord.net>, relay=mail.pcsupport.no[81.26.32.130], delay=0, status=sent (250 Message queued)
I don't know where I should start to look for more debug info.. The amavis log does not show anything usefull.

postconf -n output :
Code:
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 4
default_destination_concurrency_limit = 10
home_mailbox = Maildir/
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = unix:passwd.byname $alias_maps
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = intrahouse.no
myhostname = gentoo.intrahouse.no
mynetworks = 213.187.182.0/24, 127.0.0.0/8
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.11
recipient_delimiter = +
relay_domains = $mydestination, $transport_maps
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks,                               reject_maps_rbl, permit_mx_backup, 
	check_client_access hash:/etc/postfix/filtered_domains,	permit_sasl_authenticated, 
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
smtpd_sasl_security_options = noanonymous
soft_bounce = yes
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:207
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = virtual
virtual_uid_maps = static:207
Thanks
 
Old 12-14-2003, 08:08 AM   #2
paulten
LQ Newbie
 
Registered: Jan 2003
Location: Norway
Distribution: Debian unstable, Redhat 8.0 7.2
Posts: 26

Original Poster
Rep: Reputation: 15
It works to alias to local user.
Example :
paul@intrahouse.by.com -> foo@intrahouse.by.com
 
  


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
please help with Postfix+courier+forward+bcc? shadowsa SUSE / openSUSE 2 08-15-2005 10:20 PM
Postfix forward all inbound mail to another server bourbon_beast Linux - Software 2 06-28-2005 04:48 AM
postfix: forward messages to root mozilla Linux - Networking 3 06-23-2005 08:11 AM
Postfix forward to another server BorgKiller *BSD 1 05-27-2005 11:07 AM
Forward All Postfix messages and deliver them dlublink Linux - Networking 1 12-27-2004 10:34 PM

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

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