Hello,
after all and after hard trying I did it for me this way:
For all who have the same problem:
I set up a router who catch the mails being forwarded to outside sender
not in our three domains and not local domain.
And I set one of our ISP hosts over which the forwards are sent. And I
made an account mailforward@???
Router
out_fwd_out:
driver= manualroute
senders=!*@domainone.de:!*@domaintwo.de:!*@domainthree.de:!*@host.local
#requires the file of the original recipient, .forward in his home
require_files=/home/${original_local_part}/.forward
route_list= !+local_domains mail.daomainone.de
transport=special_out_fwd_out
Transport
special_out_fwd_out:
driver=smtp
return_path= mailforwarder@???
Thats all
Daniel
-----Ursprüngliche Nachricht-----
Von: exim-users-bounces@??? [
mailto:exim-users-bounces@exim.org] Im
Auftrag von Daniel Müller
Gesendet: Dienstag, 18. Juli 2006 15:09
An: exim-users@???
Betreff: [exim] WG: WG: Vacation exim 4 dynamic ip problem
When I do a exim -qff -v I see that mails, comming from outside to be
forwarded to another server , have a <> sender (0 Sender). With yahoo
this does not matter but with gmx it is impossible to get this mails
through.
How do I setup my Userforward-router to fix this:
userforward:
driver = redirect
check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
file = $home/.forward
allow_filter
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
directory_transport= address_directory
my other routers three domains
smart_route_domain1_de:
driver = manualroute
transport = remote_smtp_domain1
route_list = !+local_domains mail.domain1.de
senders = /etc/exim/domain1_senders
errors_to= postmaster
smart_route_domain2_de:
driver= manualroute
transport = remote_smtp_domain2
route_list = !+local_domains mail.domain2.de
senders = /etc/exim/domain2_senders
errors_to= postmaster
smart_route_domain3_de:
driver = manualroute
transport = remote_smtp_domain3
route_list = !+local_domains smtp.domain3.de
senders = /etc/exim/domain3_senders
errors_to= postmaster
The users sending over which are looked up in files
-----Ursprüngliche Nachricht-----
Von: exim-users-bounces@??? [
mailto:exim-users-bounces@exim.org] Im
Auftrag von Daniel Müller
Gesendet: Dienstag, 18. Juli 2006 09:06
An: exim-users@???
Betreff: [exim] WG: Vacation exim 4 dynamic ip problem
Hello,
after some days of trying I found out that only mails from outside(not
our namespace) had this strange behaviour.
mailoutside(not our namespace)-->Provider server --> exim -->
localuser@localdomain -->if .forward(xuser@???)-->exim direct
connect to emailserver xuser.com
How can I rewrite incoming mails condition if a $home/.forward file
exist in a way
that they are forwarded from the user over our Provider server this way:
mailoutside-->Provider-->exim-->localuser@localdomain-->if .forward
rewriting from=localuser@localdomain to=address in .forwad-file -->
OurProviderServer-->.forwardAdressEmailServer
Or is there a way to do this with the mails as attachement?
Daniel
-----Ursprüngliche Nachricht-----
Von: exim-users-bounces@??? [
mailto:exim-users-bounces@exim.org] Im
Auftrag von Daniel Müller
Gesendet: Donnerstag, 13. Juli 2006 14:51
An: exim-users@???
Betreff: [exim] Vacation exim 4 dynamic ip problem
Hello,
I have a problem with vacation and exim4.
I have several smarthost over which I send mails.
.Vacation files and .forward files are generated correctly via the
vacation plugin of squirrelmail.
Now forwarding is no problem. When a user set a address to which should
be forwarded exim
choses the right router(several provider) and transport on behalf of
the domain aliases.
But when the user sets an vacation message exim just chooses the
dnslookup and the normal remote smtp.
Exim is then connecting directly with the recipients Email-Server and I
get a Your address is listed as dynamic
We are not accepting
..
And the mails are refused on the most Servers.
Is there a way to send the vacation message the right way over my
defined smarthost?
My configuration:
The router the last one in config file exim.conf
vacation:
driver=accept
check_local_user
require_files= $home/.vacation.msg
senders= !*-request@.*:\
!e-drug-bounces@???:\
!bounce-*@.*:\
!*-bounce@.*:\
!*bounce*@.*:\
!newsletter-*@.*:\
!news*@.*:\
!news@.*:\
!*-newsletter@.*:\
!*newsletter@.*:\
!owner-.*@.*:\
!postmaster@.*:\
!listmaster@.*:\
!webmaster@.*:\
!mailer-daemon@.*:\
!noreply*@.*:\
!newsletter*@.*:\
!info@.*:\
!info*@*:\
!*@info*:\
!request*@.*:\
!*@.newsletter*:\
!fetchmail*@.*:\
!wwwrun@???:\
!autoreply*@*:\
!www*@.*:\
!root@.*
transport=vacation_transport
unseen
Now the transport:
vacation_transport:
driver= pipe
command= /usr/bin/vacation -I $local_part
Thanks in advance
Daniel
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://www.exim.org/eximwiki/
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://www.exim.org/eximwiki/
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://www.exim.org/eximwiki/