Current time: 04-26-2024, 08:14 PM Hello There, Guest! (LoginRegister)


Post Reply 
mail forwards dont work RC6
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #21
RE: mail forwards dont work RC6
it should be checked whatever you need:
normal mail: if you need a copy on the server (for pop3/imap/webmail access)
and/or
forward: the mails should go somewhere else (local or external)

/J
12-04-2008 05:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
cjrat Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #22
RE: mail forwards dont work RC6
I readd mail account, create another, but still mail comes only in virtual directory, not to be forwarded Sad
Have you any more ideas?(
12-04-2008 06:00 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #23
RE: mail forwards dont work RC6
does the file /etc/postfix/ispcp/aliases lokk ok?

origmail@origdomain.tld origmail@origdomain.tld, externalmail@extdomain.tld

and is the timestamp of aliases.db newer (or equal) to the aliases?

If the aliases file is correct then ispcp does the right job - we need to come closer to the error...

/J
12-04-2008 07:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
cjrat Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #24
RE: mail forwards dont work RC6
Yes, /etc/postfix/ispcp/aliases ok. And the timestamp of aliases.db is equal to the aliases.
It looks like this:

origmail@origdomain.tld origmail@origdomain.tld, externalmail@extdomain.tld

And origmail@origdomain.tld recieves mail with header (of course, mail@otherdomain.com and origmail@origdomain.tld are faked e-mails):

Return-Path: <mail@otherdomain.com>
X-Original-To: origmail@origdomain.tld
Delivered-To: origmail@origdomain.tld
Received: from localhost (local [127.0.0.1])
by (Postfix) with ESMTP id 46786AEA07C
for <origmail@origdomain.tld>; Thu, 4 Dec 2008 13:36:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new
Received: from ([127.0.0.1])
by localhost ([127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id ZQzeVMfJBNGp for <origmail@origdomain.tld>;
Thu, 4 Dec 2008 13:36:40 +0300 (MSK)
......
Reply-To: mail@otherdomain.com
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
MIME-Version: 1.0
To: origmail@origdomain.tld
Subject: marat2f
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
What other configs should I post here?
(This post was last modified: 12-04-2008 08:47 PM by cjrat.)
12-04-2008 08:45 PM
Find all posts by this user Quote this message in a reply
cjrat Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #25
RE: mail forwards dont work RC6
By the way, there is a /etc/aliases

postmaster: root
clamav: root
root: account@mydomain.com

Last string I added, run
#newaliases

send a mail to root and it successfully forwards to account@mydomain.com So this one works.
(This post was last modified: 12-04-2008 10:10 PM by cjrat.)
12-04-2008 10:08 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #26
RE: mail forwards dont work RC6
/etc/aliases is another alias file - for system users...
good that works:-)

you can try this one:
sendmail -bv origmail@origdomain.tld

then "root" gets an email (from mailer-daemon) with information where the mail would be sent to...

or have a look at the mail.log - maybe the second mail is sent, but did not get there..??

/J
12-04-2008 10:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
cjrat Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #27
RE: mail forwards dont work RC6
(12-04-2008 10:59 PM)joximu Wrote:  /etc/aliases is another alias file - for system users...
good that works:-)
OK Smile)

So root got a mail with following content:

This is the mail system at host {myhost}.
Enclosed is the mail delivery report that you requested.

The mail system
<origmail@origdomain.tld>: delivery via virtual: delivers to maildir

Reporting-MTA: dns; {myhost}
X-Postfix-Queue-ID: ED8EDAEA085
X-Postfix-Sender: rfc822; root@{myhost}
Arrival-Date: Thu, 4 Dec 2008 16:06:49 +0300 (MSK)

Final-Recipient: rfc822; origmail@origdomain.tld
Action: deliverable
Status: 2.0.0
Diagnostic-Code: X-Postfix; delivery via virtual: delivers to maildir

Received: by {myhost} (Postfix, from userid 0)
id ED8EDAEA085; Thu, 4 Dec 2008 16:06:49 +0300 (MSK)
From: root@{myhost}
Subject: probe
To:
origmail@origdomain.tld
Message-Id: <20081204130649.ED8EDAEA085@{myhost}>
Date: Thu, 4 Dec 2008 16:06:49 +0300 (MSK)
(This post was last modified: 12-04-2008 11:12 PM by cjrat.)
12-04-2008 11:11 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #28
RE: mail forwards dont work RC6
hm, postfix does not seem to accept the above line:

origmail@origdomain.tld origmail@origdomain.tld, externalmail@extdomain.tld

Can you have a look at the ispcp/aliases file again. Is there any other line with the same "origmail@origdomain.tld" at the beginning?

or post a "postconf -n"

/J
12-04-2008 11:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
cjrat Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #29
RE: mail forwards dont work RC6
There's only one line in aliases:

origmail@origdomain.tld origmail@origdomain.tld,externalmail@extdomain.tld

Here's postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 10485760
mydestination = $myhostname, $mydomain
mydomain = mydomain.ru
myhostname = {myhostname}
mynetworks_style = host
myorigin = $myhostname
receive_override_options = no_address_mappings
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP ispCP 1.0.0 RC6 OMEGA Managed
smtpd_client_restrictions = permit_mynetworks, client_access, reject_rbl_client bl.spamcop.net, reject_rbl_client cbl.abuseat.org, reject_rbl_client dul.ru, reject_rbl_client dnsbl.sorbs.net, reject_rbl_client zen.spamhaus.org
smtpd_data_restrictions = reject_multi_recipient_bounce, reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname
smtpd_recipient_limit = 10
smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:12525, check_policy_service inet:127.0.0.1:60000, permit
smtpd_restriction_classes = client_access
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, permit_mynetworks, permit_sasl_authenticated
transport_maps = hash:/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/etc/postfix/ispcp/aliases
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 1001
virtual_transport = virtual
virtual_uid_maps = static:1001
12-04-2008 11:28 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #30
RE: mail forwards dont work RC6
Everything seems ok.
I don't know what's going on here.

I wonder what happens:
cd /etc/postfix/ispcp
postmap -q origmail@origdomain.tld aliases

/J
12-04-2008 11:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)