public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Kazantsev <mike_kazantsev@fraggod.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mail server
Date: Sun, 25 Jan 2009 23:14:18 +0500	[thread overview]
Message-ID: <20090125231418.7feeb371@coercion> (raw)
In-Reply-To: <497C9D28.2020805@logiquefloue.org>

[-- Attachment #1: Type: text/plain, Size: 1567 bytes --]

On Sun, 25 Jan 2009 18:11:04 +0100
laurent <laurent@logiquefloue.org> wrote:

> Now I see more what ssmtp and msmtp are about so I have some questions.
> Is it possible to use an existing smtp port with them and be able to 
> change the sender e-mail from my apache application ?
>
> Like it's transparently sending e-mail from my existing smtp account 
> with my authentification but with someone else e-mail.

Yes, basically you can just invoke 'sendmail box@domain.etc' and type
message with all the headers you need - 'to:', 'from:', 'subject:' etc
to stdin.
Of course, every language has some wrappers to simplify that process.

 
> For MTA: it involves installing a DNS server ?

Not really.
Your IP belongs to an ISP, and it's DNS server has the authority for
that address. So, if anyone (e.g. mail server) is asking any (other) DNS
server "who's that guy?", that DNS will go to your provider's DNS and
ask "so, it's one of yours, who is it?" and it'll be in position to
either return some valid name (that's rarely free), delegate the task
to some other DNS (mostly the case with IP ranges, bought by some
organizations) or just shrug, which is often the case with common users.

So the answer is likely - "it won't matter, you won't get a name", but
that's entirely up to your ISP.

That said, there are always possibilities to use the services of (or set
up) some relay server or buy dedicated IP and tunnel traffic through
it, but that's quite beyond the scope of question, I believe.

-- 
Mike Kazantsev // fraggod.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-01-25 18:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 18:54 [gentoo-user] mail server laurent
2009-01-24 21:26 ` Stroller
2009-01-25  2:59 ` Mike Kazantsev
2009-01-25 14:24   ` laurent
2009-01-25 17:11   ` laurent
2009-01-25 18:14     ` Mike Kazantsev [this message]
2009-01-26 18:09       ` laurent
2009-01-26 18:17         ` Mike Kazantsev
2009-01-26 18:43           ` laurent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090125231418.7feeb371@coercion \
    --to=mike_kazantsev@fraggod.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox