change the Evelope-From

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

OliE
Posts: 14
Joined: Fri Sep 09, 2005 1:54 pm

change the Evelope-From

Postby OliE » Sun Oct 30, 2005 9:16 am

Hi,

I want to send all e-mails over another ISP Provider with sendmail. The problem is that the ISP need the same email adress in the Envelope-From that I logged into the ISP.

I change in sendmail.mc to

Code: Select all

define(`SMART_HOST',`mail.gmx.net')
MASQUERADE_AS(`gmx.net')dnl
FEATURE(masquerade_envelope)dnl


and in access

Code: Select all

AuthInfo:mail.gmx.net "U:xyz@gmx.net" "I:xyz@gmx.net" "P:*******" "M:LOGIN PLAIN"


But I send over scalix with another email address foobar@anotherdomain.net

So I create genericstable file (found in the sendmail doc)

Code: Select all

foobar@anotherdomain.net      xyz@gmx.net

But this will not work. Sendmail still sends emails with foobar@anotherdomain.net.
So how can sendmail set the Envelope-From to xyz@gmx.net?
(I know it not a special scalix problem but I hope anybody can help me)

Best Regards,
Olie

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Oct 31, 2005 11:01 am

Though I am not sure about the syntax in all detail, I believe something very close to this should actually do the trick.

For me, the first thing to check is, if you have enabled the genericstable feature in sendmail; on my RHEL system, it is not enabled by default.

this can be checked by doing
grep genericstable sendmail.cf

If this returns nothing, you need to include the feature.

This is done by adding a
FEATURE(`genericstable')
line in sendmail.mc and regenerating sendmail.cf

Don't forget to run omsendin afterwards to include Scalix-specific configuration.

Also, after genericstable content is updated, you have to run make to generate the indexed version of the file.

Let us know if this helped...

-- F:
Florian von Kurnatowski, Die Harder!

OliE
Posts: 14
Joined: Fri Sep 09, 2005 1:54 pm

Postby OliE » Mon Oct 31, 2005 2:41 pm

Hi florian,
thx for your answer.
I'm sorry to say that this don't work. :cry:
the FEATURE('genericstable') i already added sry I forgot to write it in my post.
But I don't know that I need to run omsendin afterwards thx for the hint.
After I run it I get the message back from the scalix Mail Delivery Subsystem to my scalix account where I had send it. Before was sendmail sends the message direct to root. ;)
This will be a little problem for me to check the header of the mail because the mail has now the MailerDomain header.
If it is important I use fedora4.

(It is a problem when I run omsendin I get this message "cmp: /opt/scalix/newconfig/submit.cf: Datei oder Verzeichnis nicht gefunden" ? I don't think so becasue scalix has the new .cf file)

Best Regards,
Oliver

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Oct 31, 2005 7:24 pm

Hi Oliver,

That's interesting that your ISP requires both authenticated SMTP *and* Masquerading, most will let you get away with one or the other. Anyway, I'm assuming that you put your genericstable in /etc/mail and you either generated the genericstable.db manually or you verified that it was built from the Makefile.

You mentioned that you added the FEATURE(genericstable)dnl, but you didn't say that you defined Class {G} by adding the GENERICS_DOMAIN(`anotherdomain.net')dnl as well. Check your sendmail.cf file and make sure it has:

C{G}anotherdomain.net

You should be able to test this by typing:

sendmail -bt
> 3,MasqHdr foobar@anotherdomain.net

which should return something like:

MasqHdr returns: xyz < @ gmx . net . >

Thanks,
Rachel

OliE
Posts: 14
Joined: Fri Sep 09, 2005 1:54 pm

Postby OliE » Tue Nov 01, 2005 4:17 am

GENERICS_DOMAIN(`anotherdomain.net')dnl was not in my config so I added it and now it works :D
Thx everybody for helping me.

Best Regards,
Oliver

BigBirdy
Posts: 133
Joined: Sun Mar 13, 2005 2:10 pm
Location: Squamish, BC
Contact:

Will this work for forwarded email headers?

Postby BigBirdy » Tue Nov 01, 2005 11:20 am

I dont know if this solution works for my issue, but it seems related.

I have a few external ISP and email addresses which I ave set at the ISP to forward to my account on my local Scalix server for the domain pbco.ca. But email which is sent to myname@outsidedomain.com shows up as having been sent to the forwarded address (myname@pbco.ca) rather than the original recpient address of myname@outsidedomain.com. Is there anyway to keep the original recpient address (pre-forwarding) when it gets to myname@pbco.ca?

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Tue Nov 01, 2005 11:22 am

in theory, yes, it all depends how the forwarding MTA rewrites the headers. As I assume that the ISP is not using Scalix, we'll have a bit of a harder time to help you with this one. :-)

-- f.
Florian von Kurnatowski, Die Harder!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 22 guests