Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Looking for a simple SMTP server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Wed Dec 14, 2005 12:25 am    Post subject: Looking for a simple SMTP server Reply with quote

All I want is an simple smtp server, any suggestions? I tried http://gentoo-wiki.com/HOWTO_Email_System_for_the_Home_Network but that looks a little to over-the-top for what I need.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Wed Dec 14, 2005 12:39 am    Post subject: Reply with quote

I agree about the complexity. I'm a happy Postfix user. I think it takes some beating. But that's without all the SASL/TLS and assorted add-ons. I couple that with Dovecot to serve up the mail as POP3 and IMAP.
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Wed Dec 14, 2005 1:30 am    Post subject: Reply with quote

The question is this:
What do YOU mean by "server"?


Do you just want to forward outgoing mail to an ISP's mail server?
Do you just want local email for system messages, etc?
Do you want to accept mail at your local domain?
Do you want a relay through which another machine (laptop?) can send email?

The first could be any "dumb" smtpd, such as ssmtp. The second could be something local-only like maildrop. The latter two require postfix or another real smtpd. If you let us know what you actually want to accomplish, we can help. postfix configuration is actually really easy, and I think that document obscures it for the sake of an absurdly complicated setup.
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Wed Dec 14, 2005 6:22 pm    Post subject: Reply with quote

Totally dumb is what I want which I have working through another machine running Postfix at the moment. What I would like to do is put the dumb smtp server on the same machine that has the Egroupware on it but every time I try to get it running I run into this:
Quote:

Your message could not be sent!
The mail server returned:

Array
(
[code] => 420
[msg] => lost connection
[desc] => Lost connection to smtp server.
[server_chat] =>
c->s: fsockopen(hopecentre2,25,0,,5) ; returned: Resource id #81
s->c: c->s: EHLO localhost

)

Do I have to have the smtp server running on a different computer?
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri Dec 16, 2005 12:58 am    Post subject: Reply with quote

adsmith wrote:
Do you want a relay through which another machine (laptop?) can send email?

The latter two require postfix or another real smtpd.


IS there a better "lightweight" choice for the clients than postfix? I currently have 2 boxes, and when I try to send from the client, it gives an error about no smtp. not at the box right now, so I can't get the exact error. if I send from the server with postfix installed, stuff goes out.

so that being the case, do all boxes need postfix & procmail? or can I at least skip procmail and have all messages from a particular box sent to my account on the mail server?

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Fri Dec 16, 2005 1:00 am    Post subject: Reply with quote

no. usually only one machine, the actual mail server, needs to be postfix. The rest can be running ssmtp or similar.

Most likely, you need to adjust your smtpd_recipient_restrictions setting in postfix to allow relay.
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri Nov 03, 2006 5:04 pm    Post subject: Reply with quote

adsmith wrote:
no. usually only one machine, the actual mail server, needs to be postfix. The rest can be running ssmtp or similar.

Most likely, you need to adjust your smtpd_recipient_restrictions setting in postfix to allow relay.


ok, i'd forgotten about this, until i did a search on this problem.

in postfix/main.cf I set:
Code:
[root@mike /root]# cat /etc/postfix/main.cf| grep d_r                                   
# through Postfix.  See the smtpd_recipient_restrictions parameter
# relay mail to.  See the smtpd_recipient_restrictions description in
smtpd_recipient_restrictions = permit_mynetworks, :ermit_sasl_authenticated, reject_unauth_destination
[root@mike /root]#       


in /etc/ssmtp/ssmtp.cof:
Code:
[nqs@miverna nqs]% cat /etc/ssmtp/ssmtp.conf | grep mailh
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=mike.nqs.is-a-geek.net


when i try to send from mutt, it hangs for several moments, then reports:
Code:
sendmail: Connection lost in middle of processing


suggestions?

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
yawm
n00b
n00b


Joined: 30 May 2006
Posts: 37

PostPosted: Mon Nov 06, 2006 7:45 am    Post subject: Reply with quote

NotQuiteSane wrote:


in postfix/main.cf I set:
Code:
[root@mike /root]# cat /etc/postfix/main.cf| grep d_r                                   
# through Postfix.  See the smtpd_recipient_restrictions parameter
# relay mail to.  See the smtpd_recipient_restrictions description in
smtpd_recipient_restrictions = permit_mynetworks, :ermit_sasl_authenticated, reject_unauth_destination
[root@mike /root]#       


in /etc/ssmtp/ssmtp.cof:
Code:
[nqs@miverna nqs]% cat /etc/ssmtp/ssmtp.conf | grep mailh
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=mike.nqs.is-a-geek.net


when i try to send from mutt, it hangs for several moments, then reports:
Code:
sendmail: Connection lost in middle of processing


suggestions?

NQS


what does
Code:
tail -f /var/log/message


say? when trying to send a e-mail outside your local network?
_________________
Fange an nie aufzuhören Höre nie auf anzufangen
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Wed Nov 08, 2006 6:33 am    Post subject: Reply with quote

yawm wrote:
NotQuiteSane wrote:

when i try to send from mutt, it hangs for several moments, then reports:
Code:
sendmail: Connection lost in middle of processing


suggestions?

NQS


what does
Code:
tail -f /var/log/message


say? when trying to send a e-mail outside your local network?


strangly enough, i fixed it. I was delayed fixing a seperate problem, but then started getting "relay access denied" instead of the previous error.

did a search, and when I proofread i found I had listed my networks as 192.169.0.0. changed it to 192.168.0.0, and it works. or at least it s-ays it does. waiting for a test message i sent to a remote account to return via fetchmail

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
makenoob
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 272
Location: /Germany/Düsseldorf

PostPosted: Wed Nov 08, 2006 9:34 am    Post subject: Reply with quote

NotQuiteSane wrote:
strangly enough, i fixed it. I was delayed fixing a seperate problem, but then started getting "relay access denied" instead of the previous error.

did a search, and when I proofread i found I had listed my networks as 192.169.0.0. changed it to 192.168.0.0, and it works. or at least it s-ays it does. waiting for a test message i sent to a remote account to return via fetchmail

NQS


/var/log/mail.log will tell you, what postfix does and the results of the communication with the other MTAs. mailq qill show you, if and which mail postfix is holding at the moment. if it can't send the mail out, it will show you a status message there too (e.g. communication lost)

hth,
marc
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Thu Nov 09, 2006 2:54 am    Post subject: Reply with quote

makenoob wrote:
/var/log/mail.log will tell you, what postfix does and the results of the communication with the other MTAs. mailq qill show you, if and which mail postfix is holding at the moment. if it can't send the mail out, it will show you a status message there too (e.g. communication lost)

hth,
marc


this is what I see:

Code:
[nqs@miverna nqs]% sudo tail /var/log/mail/current &&sudo mailq
                - Last output repeated twice -
Nov  7 21:26:03 [sSMTP] RCPT TO:<Baradium@deleted> (554 5.7.1 <Baradium@deleted>: Relay access denied)
                - Last output repeated 2 times -
Nov  7 22:53:56 [sSMTP] Sent mail for nqs@miverna (221 2.0.0 Bye)
mailq: Mail queue is empty
[nqs@miverna nqs]%


one of those messages was to me @ an account in montana. I haven't recived it yet. which makes me wonder why.

on mike I see:
Code:
[root@mike nqs]# mailq                                                                   
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
DCB8A2027B     1678 Thu Nov  2 20:34:15  nqs@nqs.is-a-geek.net
(host mx.lax.untd.com[64.136.28.83] refused to talk to me: 550 Access denied:...06bd0d79913d75591114f9f9d114d099d1994441a08041906055696d94fd250db9841911a011fd9dad20c0ed853551c9c03189a0adbd796179c0e0491db124d9a171f0b199a561494dd0b4d0b10dedc4c18440c5a930c1649db4edb5e4f9e4c189249014ad7980c009a959e0bd24b4e9d904dd31757121d4792dd4f43109a97909b9e1b41d...)
                                        deleted@deteted
(host mailin-01.mx.aol.com[64.12.137.249] refused to talk to me: 554- (RTR:DU)  http://postmaster.info.aol.com/errors/554rtrdu.html 554  Connecting IP: 70.56.253.76)
                                       deleted@aol.com
                                         deleted@aol.com
                                        deleted@aol.com



Dunno about the first, but aol is rejecting my mail because i use a dynamic ip

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
makenoob
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 272
Location: /Germany/Düsseldorf

PostPosted: Thu Nov 09, 2006 8:23 am    Post subject: Reply with quote

okay, sSMTP gives out the code 554, so the mail is sent back with an error message (that's why the mailq is empty). you should check the configs and find out, why sSMTP denies relaying (sorry, don't having any experience with sSMTP)
Back to top
View user's profile Send private message
FLP
n00b
n00b


Joined: 18 May 2005
Posts: 16

PostPosted: Thu Nov 09, 2006 1:46 pm    Post subject: Reply with quote

NotQuiteSane wrote:

in postfix/main.cf I set:
Code:
smtpd_recipient_restrictions = permit_mynetworks, :ermit_sasl_authenticated, reject_unauth_destination



Typo... :D
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri Nov 10, 2006 6:28 am    Post subject: Reply with quote

FLP wrote:
NotQuiteSane wrote:

in postfix/main.cf I set:
Code:
smtpd_recipient_restrictions = permit_mynetworks, :ermit_sasl_authenticated, reject_unauth_destination



Typo... :D


Already corrected, but thanks.

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
Sakkath
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 198
Location: Pawtucket, RI

PostPosted: Fri Feb 09, 2007 1:47 pm    Post subject: Reply with quote

If this is solved, please prefix the topic subject with [SOVLED].
_________________
The person who makes no mistakes does not usually make anything.

Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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