Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2017 08:31:14 +0100
From:      Bernt Hansson <bah@bananmonarki.se>
To:        =?UTF-8?Q?Trond_Endrest=c3=b8l?= <Trond.Endrestol@fagskolen.gjovik.no>, FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Envelope rewrite by sendmail?
Message-ID:  <741c3823-bc0a-f59b-d828-9afc8be9bacf@bananmonarki.se>
In-Reply-To: <alpine.BSF.2.20.1701252134520.1006@mail.fig.ol.no>
References:  <alpine.BSF.2.20.1701252134520.1006@mail.fig.ol.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-01-25 21:42, Trond Endrestøl wrote:
> Hi,
>
> I have users with email addresses ending in a long suffix.  Combine
> this with long names in front of the @ sign, and it immediately gets
> very tedious to type an email address.
>
> We have a shorter domain name, and I was thinking of creating a small
> SMTP server to serve this short domain name and simply forward email
> to the main SMTP server.
>
> It is not possible to switch the main SMTP server to serve the short
> domain name.
>
> Here's an example:
>
>    A mail messages arrives on the small SMTP server addressed to
>    shorty@short.tld. Sendmail, though the aliases mechanism, forwards
>    the message to long.name@some.incredible.long.domain.name.tld.
>
>    Antispam measures such as SPF will flag the small SMTP server as not
>    allowed to send email on behalf of the originator.
>
>    Thus, prior to forwarding each message, the small SMTP server will
>    need to masquerade as the originator and rewrite the envelope's from
>    address to an address within the short.tld domain.
>
> Can this be accomplished using sendmail? Would the short address of
> the receiver suffice or should I use a fixed address regardless of the
> originator and/or the ultimate receiver?
>
> The OS on the small SMTP server will be FreeBSD 11.
>
> Any pointers are appreciated.
>
http://www.sendmail.org/~ca/email/doc8.12/cf/m4/masquerading_relaying.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?741c3823-bc0a-f59b-d828-9afc8be9bacf>