Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SMTP Server on Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Goya13
n00b
n00b


Joined: 12 Aug 2004
Posts: 59

PostPosted: Thu Aug 12, 2004 3:45 am    Post subject: SMTP Server on Gentoo Reply with quote

So, I've converted to Gentoo, and now Im not going back!
This is the greatest OS I have seen to date.

Now, to the question at hand.

I am annoyed with my domain's smtp server. It rarely works. POP3 is nice, and it works all the time. But SMTP really stinks.

I want to set up an SMTP server at home on my constantly running Gentoo server behind a firewall. It has dydns set up, so I have some sort of dns.

I've tried emerging sendmail, qmail, and postfix. I can't get any of them to work with this situation. Is there anything I can do???

Please help....

-Allan
Back to top
View user's profile Send private message
30726
Veteran
Veteran


Joined: 24 Sep 2003
Posts: 1501

PostPosted: Thu Aug 12, 2004 7:58 am    Post subject: Reply with quote

Check out http://www.gentoo.org/doc/en/virt-mail-howto.xml for the official docs on hosting your own mailserver.

A lot of ISPs are blocking port 25 nowadays though.
Back to top
View user's profile Send private message
Goya13
n00b
n00b


Joined: 12 Aug 2004
Posts: 59

PostPosted: Thu Aug 12, 2004 4:18 pm    Post subject: Reply with quote

I've read both mail server MTA docs back and forth. Neither of them seem to fit my need. I don't have a domain, but I do have dyndns. Plus I am behind a firewall. Which MTA do I need??
Back to top
View user's profile Send private message
Goya13
n00b
n00b


Joined: 12 Aug 2004
Posts: 59

PostPosted: Thu Aug 12, 2004 4:19 pm    Post subject: Reply with quote

PS, anyone want a gmail account?
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Thu Aug 12, 2004 5:20 pm    Post subject: Re: SMTP Server on Gentoo Reply with quote

Goya13 wrote:
I've tried emerging sendmail, qmail, and postfix. I can't get any of them to work with this situation. Is there anything I can do???


It would be helpful to be more specific on what didn't work.

Goya13 wrote:
I don't have a domain, but I do have dyndns.


Separate two issues here. Having a domain, dyndns, whatever, that will become important in allowing mail to find you. But first, you need a working MTA to receive the mail, and that doesn't require any domain or DNS at all.

Goya13 wrote:
Plus I am behind a firewall.


I would guess that describes nearly 100% of MTAs on the 'net. ;)

Dave
Back to top
View user's profile Send private message
Goya13
n00b
n00b


Joined: 12 Aug 2004
Posts: 59

PostPosted: Thu Aug 12, 2004 6:13 pm    Post subject: Reply with quote

i heard that postfix is the easiset, so lets try this one for now.

i emerged it successfully and edited my main.cf file.

i get this error: postfix: warning: valid_hostname: misplaced delimiter: .domain.name
postfix: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: .domain.name

because my main.cf is not configured correctly.

i followed the instrcutions to the letter, perhaps incorreclty

mydomain = $domain.name
myhostname = $host.domain.name

im postivie that this is incorrect, but what do i put here instead??

im behind a firewall, in a NAT. my localhost is called ferrari
my domain is called chess
do i put ferrari.chess????
Back to top
View user's profile Send private message
Goya13
n00b
n00b


Joined: 12 Aug 2004
Posts: 59

PostPosted: Thu Aug 12, 2004 6:21 pm    Post subject: Reply with quote

i tried ferrari.chess for hostname
and chess for domainname

so far so good

fired up mutt and sent an email to root

it got sent to my home adress with this msg

This is the Postfix program at host ferrari.chess.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<root@ferrari.Belkin>: Name service error for name=ferrari.belkin type=A: Host
not found



which is good, right?!!? this means i can send out.


omg! i just sent email to my email address at home and it worked that was awesome!!!!!!!!!!!!!!!!!!!!!!!!


its cool, the from address is: root <root@ferrari.Belkin>

omg it totally worked to my gmail account

now, question, is it possible for me to send email from this smtp server, without using mutt
perhaps using evolution on a computer some where else???
Back to top
View user's profile Send private message
Goya13
n00b
n00b


Joined: 12 Aug 2004
Posts: 59

PostPosted: Thu Aug 12, 2004 6:25 pm    Post subject: Reply with quote

ok i apologize, that was a completely random post

now, here i am
i got postfix working within a firewall, and it is awesome!!!!!!!!

how do i remotly access this smtp server, though??
is it smtp.(MY-DYDNS.org thing) ???

thanks so much!
Back to top
View user's profile Send private message
Jowilly
Guru
Guru


Joined: 22 Jun 2002
Posts: 319

PostPosted: Thu Aug 12, 2004 6:44 pm    Post subject: Reply with quote

Goya13 wrote:


how do i remotly access this smtp server, though??
is it smtp.(MY-DYDNS.org thing) ???

thanks so much!


Add smtp.MY-DYDNS.org to /etc/hosts

Code:

127.0.0.1      smtp.MY-DYDNS.org           smtp


In /etc/postfix/main.cf
Code:

mydomain = MY-DYDNS.org
myhostname = smtp.MY-DYDNS.org



Reload Postfix conf files with postfix reload

Open smtp port 25 in your firewall

Then you can access from outside with evolution or outlook
login : yourlogin
password: yourpassword
email: you@MY-DYDNS.org
smtp server: smtp.MY-DYDNS.org
Port : 25

Then, if you want to retrieve emails you need pop3 or imap support. Both are provided when you emerge courier-imap
Follow the howtos.
Back to top
View user's profile Send private message
Goya13
n00b
n00b


Joined: 12 Aug 2004
Posts: 59

PostPosted: Thu Aug 12, 2004 6:48 pm    Post subject: Reply with quote

WOW, thanks for that help!!!

what would my pop3 email addresses be??

username@MY-DYDNS.org ???
Back to top
View user's profile Send private message
Jowilly
Guru
Guru


Joined: 22 Jun 2002
Posts: 319

PostPosted: Thu Aug 12, 2004 8:23 pm    Post subject: Reply with quote

Goya13 wrote:
WOW, thanks for that help!!!

what would my pop3 email addresses be??

username@MY-DYDNS.org ???


Yes, obviously, if you send email to username@MY-DYDNS.org you will retrieve it for the same email address.

Also, you will need to add an entry for pop.MY-DYDNS.org in /etc/hosts, ...

But an easier way if your smtp/imap/pop servers are on the same machine, and if you don't plan on separating them later, is to put everything (pop3 and smtp) at mail.MY-DYDNS.org (rename relevant entries in /etc/hosts, postfix conf,...).

For pop3 you will have to open port 110 on your firewall (port 143 for imap, if you need it.)

Follow the howtos. For example, emerge cyrus-sasl if you want ssl or tls encryption for your remote smtp/pop3/imap connections.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum