better explication

This is a discussion on better explication within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hello, I try to resume and explain better my problem. If I have an account associed with a mailbox like ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-19-2004
Thierry B
 
Posts: n/a
Default better explication

Hello,
I try to resume and explain better my problem.
If I have an account associed with a mailbox like thierry@toto.org and I
want to copy mail for thierry@toto.org to thierry@free.fr, i have problems.

I try this in my file virtual:

thierry@linux.thierry.eu.org thierry@linux.thierry.eu.org, thbouhnik@free.fr

but thbouhnik@free.fr reeives 2 mails instead of one:

This is my logs:

Dec 19 13:02:05 thierry postfix/postfix-script: stopping the Postfix
mail system
Dec 19 13:02:05 thierry postfix/master[6882]: terminating on signal 15
Dec 19 13:02:05 thierry postfix/postfix-script: starting the Postfix
mail system
Dec 19 13:02:05 thierry postfix/master[7025]: daemon started -- version
2.1.5
Dec 19 13:02:31 thierry postfix/smtpd[7032]: connect from
serveur[192.168.0.3]
Dec 19 13:02:31 thierry postfix/smtpd[7032]: D5C8492BB1:
client=serveur[192.168.0.3]
Dec 19 13:02:31 thierry postfix/cleanup[7037]: D5C8492BB1:
message-id=<41C56DCF.80608@bouhnik.biz>
Dec 19 13:02:31 thierry postfix/qmgr[7029]: D5C8492BB1:
from=<thierry@bouhnik.biz>, size=1189, nrcpt=2 (queue active)
Dec 19 13:02:31 thierry postfix/smtpd[7032]: disconnect from
serveur[192.168.0.3]
Dec 19 13:02:32 thierry postfix/smtpd[7041]: connect from
localhost[127.0.0.1]
Dec 19 13:02:32 thierry postfix/smtpd[7041]: 0158792BB2:
client=localhost[127.0.0.1]
Dec 19 13:02:32 thierry postfix/cleanup[7037]: 0158792BB2:
message-id=<41C56DCF.80608@bouhnik.biz>
Dec 19 13:02:32 thierry postfix/qmgr[7029]: 0158792BB2:
from=<thierry@bouhnik.biz>, size=1569, nrcpt=3 (queue active)
Dec 19 13:02:32 thierry postfix/smtpd[7041]: disconnect from
localhost[127.0.0.1]
Dec 19 13:02:32 thierry amavis[4579]: (04579-03) Passed,
<thierry@bouhnik.biz> ->
<thbouhnik@free.fr>,<thierry@linux.thierry.eu.org> , Message-ID:
<41C56DCF.80608@bouhnik.biz>, Hits: -
Dec 19 13:02:32 thierry postfix/lmtp[7038]: D5C8492BB1:
to=<thbouhnik@free.fr>, orig_to=<thierry@linux.thierry.eu.org>,
relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok,
id=04579-03, from MTA: 250 Ok: queued as 0158792BB2)
Dec 19 13:02:32 thierry postfix/lmtp[7038]: D5C8492BB1:
to=<thierry@linux.thierry.eu.org>, relay=127.0.0.1[127.0.0.1], delay=1,
status=sent (250 2.6.0 Ok, id=04579-03, from MTA: 250 Ok: queued as
0158792BB2)
Dec 19 13:02:32 thierry postfix/qmgr[7029]: D5C8492BB1: removed
Dec 19 13:02:32 thierry postfix/smtp[7042]: 0158792BB2:
to=<thbouhnik@free.fr>, relay=mx.free.fr[213.228.0.199], delay=0,
status=sent (250 ok 1103457750 qp 5292)
Dec 19 13:02:32 thierry postfix/smtp[7042]: 0158792BB2:
to=<thbouhnik@free.fr>, orig_to=<thierry@linux.thierry.eu.org>,
relay=mx.free.fr[213.228.0.199], delay=0, status=sent (250 ok 1103457750
qp 5292)
Dec 19 13:02:33 thierry postfix/pipe[7043]: 0158792BB2:
to=<thierry@linux.thierry.eu.org>, relay=maildrop, delay=1, status=sent
(linux.thierry.eu.org)
Dec 19 13:02:33 thierry postfix/qmgr[7029]: 0158792BB2: removed
Dec 19 13:04:34 thierry imaplogin: DISCONNECTED,
user=thierry@linux.thierry.eu.org, ip=[::ffff:127.0.0.1], headers=664,
body=4887, time=729
Dec 19 13:04:34 thierry imaplogin: DISCONNECTED,
user=thierry@linux.thierry.eu.org, ip=[::ffff:127.0.0.1], headers=0,
body=0, time=729
Dec 19 13:04:53 thierry authdaemond.mysql: restarting authdaemond children
Dec 19 13:04:53 thierry authdaemond.mysql: modules="authmysql", daemons=5
Dec 19 13:04:55 thierry postfix/postfix-script: stopping the Postfix
mail system
Dec 19 13:04:55 thierry postfix/master[7025]: terminating on signal 15

main.cf:

myhostname = debian
mydomain = debian
mydestination = $myhostname
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
home_mailbox = Maildir/

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes

alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf

transport_maps = mysql:/etc/postfix/mysql-transport.cf
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf
#virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf

#OPTIONAL PART
smtpd_helo_required = yes
disable_vrfy_command = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject

content_filter=smtp-amavis:[127.0.0.1]:10024


and my master.cf:


#
# Postfix master process configuration file. Each logical line
# describes how a Postfix daemon program should be run.
#
# A logical line starts with non-whitespace, non-comment text.
# Empty lines and whitespace-only lines are ignored, as are comment
# lines whose first non-whitespace character is a `#'.
# A line that starts with whitespace continues a logical line.
#
# The fields that make up each line are described below. A "-" field
# value requests that a default value be used for that field.
#
# Service: any name that is valid for the specified transport type
# (the next field). With INET transports, a service is specified as
# host:port. The host part (and colon) may be omitted. Either host
# or port may be given in symbolic form or in numeric form. Examples
# for the SMTP server: localhost:smtp receives mail via the loopback
# interface only; 10025 receives mail on port 10025.
#
# Transport type: "inet" for Internet sockets, "unix" for UNIX-domain
# sockets, "fifo" for named pipes.
#
# Private: whether or not access is restricted to the mail system.
# Default is private service. Internet (inet) sockets can't be private.
#
# Unprivileged: whether the service runs with root privileges or as
# the owner of the Postfix system (the owner name is controlled by the
# mail_owner configuration variable in the main.cf file). Only the
# pipe, virtual and local delivery daemons require privileges.
#
# Chroot: whether or not the service runs chrooted to the mail queue
# directory (pathname is controlled by the queue_directory configuration
# variable in the main.cf file). Presently, all Postfix daemons can run
# chrooted, except for the pipe, virtual and local delivery daemons.
# The proxymap server can run chrooted, but doing so defeats most of
# the purpose of having that service in the first place.
# The files in the examples/chroot-setup subdirectory describe how
# to set up a Postfix chroot environment for your type of machine.
#
# Wakeup time: automatically wake up the named service after the
# specified number of seconds. A ? at the end of the wakeup time
# field requests that wake up events be sent only to services that
# are actually being used. Specify 0 for no wakeup. Presently, only
# the pickup, queue manager and flush daemons need a wakeup timer.
#
# Max procs: the maximum number of processes that may execute this
# service simultaneously. Default is to use a globally configurable
# limit (the default_process_limit configuration parameter in main.cf).
# Specify 0 for no process count limit.
#
# Command + args: the command to be executed. The command name is
# relative to the Postfix program directory (pathname is controlled by
# the daemon_directory configuration variable). Adding one or more
# -v options turns on verbose logging for that service; adding a -D
# option enables symbolic debugging (see the debugger_command variable
# in the main.cf configuration file). See individual command man pages
# for specific command-line options, if any.
#
# General main.cf options can be overridden for specific services.
# To override one or more main.cf options, specify them as arguments
# below, preceding each option by "-o". There must be no whitespace
# in the option itself (separate multiple values for an option by
# commas).
#
# In order to use the "uucp" message tranport below, set up entries
# in the transport table.
#
# In order to use the "cyrus" message transport below, configure it
# in main.cf as the mailbox_transport.
#
# SPECIFY ONLY PROGRAMS THAT ARE WRITTEN TO RUN AS POSTFIX DAEMONS.
# ALL DAEMONS SPECIFIED HERE MUST SPEAK A POSTFIX-INTERNAL PROTOCOL.
#
# DO NOT SHARE THE POSTFIX QUEUE BETWEEN MULTIPLE POSTFIX INSTANCES.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - - - - smtpd
smtp-amavis unix - - n - 2 lmtp -o
lmtp_data_done_timeout=1200 -o lmtp_send_xforward_command=yes

127.0.0.1:10025 inet n - n - - smtpd -o
content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o
smtpd_restriction_classes= -o smtpd_client_restrictions= -o
smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o
smtpd_recipient_restrictions=permit_mynetworks,rej ect -o
mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o
smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o
smtpd_hard_error_limit=1000
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=R user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop
-f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr fifo - - n 300 1 tlsmgr
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o
smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o
smtpd_sasl_auth_enable=yes



Thanks.
bye
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0