* [gentoo-user] mail server @ 2009-01-24 18:54 laurent 2009-01-24 21:26 ` Stroller 2009-01-25 2:59 ` Mike Kazantsev 0 siblings, 2 replies; 9+ messages in thread From: laurent @ 2009-01-24 18:54 UTC (permalink / raw To: gentoo-user Hi Gentoos, I want to install an e-mail server solution, based on postfix. I'm reading this how-to: http://www.gentoo.org/doc/en/virt-mail-howto.xml From a level simple to complexe I would like a solution that is not to hard at first to have time, to understand the basics, and have it working, and that could then be easy to extend to a more complex situation like multi domain hosting. I first just need my apache to send mails via mod_php and mod_neko. Thanks for advices. Laurent ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 2009-01-24 18:54 [gentoo-user] mail server laurent @ 2009-01-24 21:26 ` Stroller 2009-01-25 2:59 ` Mike Kazantsev 1 sibling, 0 replies; 9+ messages in thread From: Stroller @ 2009-01-24 21:26 UTC (permalink / raw To: gentoo-user On 24 Jan 2009, at 18:54, laurent wrote: > ... I first just need my apache to send mails via mod_php and > mod_neko. If it's just for _outgoing_ email you'll probably get away with ssmtp. It's very easy to configure - look at /etc/ssmtp Stroller. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 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 1 sibling, 2 replies; 9+ messages in thread From: Mike Kazantsev @ 2009-01-25 2:59 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 728 bytes --] On Sat, 24 Jan 2009 19:54:05 +0100 laurent <laurent@logiquefloue.org> wrote: > I first just need my apache to send mails via mod_php and mod_neko. I'd also suggest using lite smtp client, like msmtp, which I find a bit more feature-packed and stable than ssmtp, while being just as easy to set up. And if you're still going to choose full-fledged MTA, keep in mind that you'll need a non-firewalled connection (at least to some ports) and reverse DNS record - so that if you type "host <Your_IP>" (or "dig -x <IP>") you'll get the correct domain name, otherwise nearly every mail service will consider you to be anonymous spammer and won't deliver any mail from your MTA. -- Mike Kazantsev // fraggod.net [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 2009-01-25 2:59 ` Mike Kazantsev @ 2009-01-25 14:24 ` laurent 2009-01-25 17:11 ` laurent 1 sibling, 0 replies; 9+ messages in thread From: laurent @ 2009-01-25 14:24 UTC (permalink / raw To: gentoo-user I will keep that in mind, the full MTA will wait a little a bit then. Thank you for the smtp servers ;) L Mike Kazantsev a écrit : > On Sat, 24 Jan 2009 19:54:05 +0100 > laurent <laurent@logiquefloue.org> wrote: > > >> I first just need my apache to send mails via mod_php and mod_neko. >> > > I'd also suggest using lite smtp client, like msmtp, which I find a > bit more feature-packed and stable than ssmtp, while being just as easy > to set up. > > And if you're still going to choose full-fledged MTA, keep in mind > that you'll need a non-firewalled connection (at least to some ports) > and reverse DNS record - so that if you type "host <Your_IP>" (or > "dig -x <IP>") you'll get the correct domain name, otherwise nearly > every mail service will consider you to be anonymous spammer and won't > deliver any mail from your MTA. > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 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 1 sibling, 1 reply; 9+ messages in thread From: laurent @ 2009-01-25 17:11 UTC (permalink / raw To: gentoo-user 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. For MTA: it involves installing a DNS server ? thx L Mike Kazantsev a écrit : > On Sat, 24 Jan 2009 19:54:05 +0100 > laurent <laurent@logiquefloue.org> wrote: > > >> I first just need my apache to send mails via mod_php and mod_neko. >> > > I'd also suggest using lite smtp client, like msmtp, which I find a > bit more feature-packed and stable than ssmtp, while being just as easy > to set up. > > And if you're still going to choose full-fledged MTA, keep in mind > that you'll need a non-firewalled connection (at least to some ports) > and reverse DNS record - so that if you type "host <Your_IP>" (or > "dig -x <IP>") you'll get the correct domain name, otherwise nearly > every mail service will consider you to be anonymous spammer and won't > deliver any mail from your MTA. > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 2009-01-25 17:11 ` laurent @ 2009-01-25 18:14 ` Mike Kazantsev 2009-01-26 18:09 ` laurent 0 siblings, 1 reply; 9+ messages in thread From: Mike Kazantsev @ 2009-01-25 18:14 UTC (permalink / raw To: gentoo-user [-- 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 --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 2009-01-25 18:14 ` Mike Kazantsev @ 2009-01-26 18:09 ` laurent 2009-01-26 18:17 ` Mike Kazantsev 0 siblings, 1 reply; 9+ messages in thread From: laurent @ 2009-01-26 18:09 UTC (permalink / raw To: gentoo-user Mike Kazantsev a écrit : > 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. > I installed and configured postfix. It sends mail localy and on external mailbox. !! I'm glad !! dig -x myip answer back my domain name. I don't know if I am being behinde a firewall. It's a dedicated server on a domain own by my host service. I don't get e-mail when replyed from external mailbox. security-wise: Is there any stuff to do, not by default, to secure my smtp server to not be used from outside ? > > >> 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. > Tunneling traffic, I'll keep that for other spare time in the year :) L ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 2009-01-26 18:09 ` laurent @ 2009-01-26 18:17 ` Mike Kazantsev 2009-01-26 18:43 ` laurent 0 siblings, 1 reply; 9+ messages in thread From: Mike Kazantsev @ 2009-01-26 18:17 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 567 bytes --] On Mon, 26 Jan 2009 19:09:03 +0100 laurent <laurent@logiquefloue.org> wrote: > dig -x myip > > answer back my domain name. I don't know if I am being behinde a > firewall. It's a dedicated server on a domain own by my host service. That's perfectly normal and fine for hosting, I was referring to connection at home, of course. > I don't get e-mail when replyed from external mailbox. Probably means there's something wrong with your configuration, or (considering previous post) just wrong message headers. -- Mike Kazantsev // fraggod.net [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mail server 2009-01-26 18:17 ` Mike Kazantsev @ 2009-01-26 18:43 ` laurent 0 siblings, 0 replies; 9+ messages in thread From: laurent @ 2009-01-26 18:43 UTC (permalink / raw To: gentoo-user Mike Kazantsev a écrit : > On Mon, 26 Jan 2009 19:09:03 +0100 > laurent <laurent@logiquefloue.org> wrote: > > >> dig -x myip >> >> answer back my domain name. I don't know if I am being behinde a >> firewall. It's a dedicated server on a domain own by my host service. >> > > That's perfectly normal and fine for hosting, I was referring to > connection at home, of course. > > >> I don't get e-mail when replyed from external mailbox. >> > > Probably means there's something wrong with your configuration, or > (considering previous post) just wrong message headers. > > I sent mails using mutt. the from e-mail is like: laurent@host.domain.com Because laurent@domain.com would refer to me on any dedicated server from that domain. Do you think it can come from that configuration ? Thank you Mike ;) L ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-01-26 18:43 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2009-01-26 18:09 ` laurent 2009-01-26 18:17 ` Mike Kazantsev 2009-01-26 18:43 ` laurent
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox