Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postix and ssmtp conflict?!
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
Azzuron
Apprentice
Apprentice


Joined: 19 May 2002
Posts: 151
Location: Ontario

PostPosted: Sun Aug 11, 2002 7:08 am    Post subject: postix and ssmtp conflict?! Reply with quote

I need to install postfix for my server to be able to send mail through php i think...so i went to do that, and it says that its blocked by SSMTP. I am not sure what uses this, how can i find out. it says the two packages conflict...does anyone know why they are conflicting. What options do i have here? Thanks again all.
_________________
--Azzuron
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Sun Aug 11, 2002 7:16 am    Post subject: Reply with quote

Your options are to remove ssmtp and emerge postfix. If you configure postfix properly you wont have an issue.

ssmtp assumes the command 'sendmail' (as does sendmail and postfix, hence why they block eachother). It does not run any local servers like postfix or sendmail though, it only provides the following functionality:
Code:
echo "email" | sendmail -s subject me@mydomain.com

and forwards it to an smtp server. Its quite handy sometimes, but safe to dump.
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
Azzuron
Apprentice
Apprentice


Joined: 19 May 2002
Posts: 151
Location: Ontario

PostPosted: Sun Aug 11, 2002 7:35 am    Post subject: Reply with quote

Excillent. Thank you much :).
_________________
--Azzuron
Back to top
View user's profile Send private message
Azzuron
Apprentice
Apprentice


Joined: 19 May 2002
Posts: 151
Location: Ontario

PostPosted: Sun Aug 11, 2002 8:19 am    Post subject: Reply with quote

well its installed i gotta work on the config. i tried that echo command you gave and it said sendmail doesnt support -s, thats with postfix not ssmtp. PHP seems to get stuck on mail() also.
_________________
--Azzuron
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Sun Aug 11, 2002 1:32 pm    Post subject: Reply with quote

Well I can't swear by my syntax, I dont often use sendmail on a command line.

I must also tackle setting up postfix, but I need it for local delivery only to a user's maildir (thinking of just firewalling port 25 off)
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
Azzuron
Apprentice
Apprentice


Joined: 19 May 2002
Posts: 151
Location: Ontario

PostPosted: Sun Aug 11, 2002 3:07 pm    Post subject: Reply with quote

well eitherway, i think the php mail() function would use sendmail correctly. It gets stuck on the mail function in any of my scripts
_________________
--Azzuron
Back to top
View user's profile Send private message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Sun Aug 11, 2002 9:48 pm    Post subject: Reply with quote

Quick note on this, which might help someone.

ssmtp seems to be emerged as a dependency of procmail. As I prefer nbsmtp (no-brainer smtp, which fits me) :) I just do something like
Code:

emerge fetchmail procmail &&
emerge -C ssmtp && emerge nbsmtp



(This is part of a script that I use for installations). I keep meaning to try it by simply putting -ssmtp in USE variables, but always forget until it's too late.

Anyway, point is, ssmtp is an smtp program, that is unnecessary if you're using postfix, sendmail, nbsmtp or other smtp program.

HTH a little--if not in this case, then maybe for someone in the future doing a search with blocked ssmtp :)

Scott


Last edited by scottro on Mon Aug 12, 2002 1:29 am; edited 1 time in total
Back to top
View user's profile Send private message
Azzuron
Apprentice
Apprentice


Joined: 19 May 2002
Posts: 151
Location: Ontario

PostPosted: Sun Aug 11, 2002 11:28 pm    Post subject: Reply with quote

Cools :). I was wondering how it got installed... Anyway i got it to function now. PHP sends mail. it was getting stuck because (Der) i forgot to turn it on :roll: . So that done, time to move on to MySQL which wont accept connections from MySQL Front :?
_________________
--Azzuron
Back to top
View user's profile Send private message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Tue Aug 13, 2002 1:18 pm    Post subject: Reply with quote

Now this is interesting--today, looking at ebuilds here and there, it seems as if it's been changed--procmail will now install my beloved nbsmtp as a dependency. So, if anyone has been following this thread, and prefers ssmtp keep that in mind. (Also, not sure what might be blocked by nbsmtp--possibly one of the larger mail clients, like postfix, etc )


Hope this is of use to someone

Scott
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Wed Aug 14, 2002 4:17 am    Post subject: Reply with quote

Heres something else to add. I just got a laptop through school with windows XP on it, so naturally the first thing I did was set aside a few gigs for gentoo.

While going through the install process (figured i'd give 1.3b a try) i got to the part where you chose a cron daemon. Since i dunno the difference, i went with vcrom like the install guide suggested. when i did an "emerge -p vcron", ssmtp was one of two dependant packages to be installed.
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Wed Aug 14, 2002 2:58 pm    Post subject: Reply with quote

That is interesting. I just tried emerge -p here, (version 1.2) but nothing. As 1.4 should be out in the next week or so, I think I"ll just, rather than running my install script overnight, just do emerge system, and then do some emerge -p and see where (if anywhere) ssmtp comes in.

Thanks, that's handy to know if it's going to be the case--because I might have tried vcron, just left it overnight come back and found that it was blocked by nbsmtp.

Scott
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Wed Aug 14, 2002 4:03 pm    Post subject: Reply with quote

Actually, it depends on virtual/mta, so a suppose any mta should do.
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Wed Aug 14, 2002 9:35 pm    Post subject: Reply with quote

Today, I went to put 1.4 on another sacrificial box--again it seems as if ssmtp is bound to postfix. :) (This was a stage 3 tarball, however as I was impatient, so perhaps, had I done an emerge rsync first, it might have been different.


Scott
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Aug 14, 2002 9:38 pm    Post subject: Reply with quote

I don't know if it is safe to edit this file manually or not, but the virtual/mta line in /var/cache/edb/virtuals might have something to do with it.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Fri Aug 16, 2002 10:35 pm    Post subject: Reply with quote

I should really try editing it on the next install I do from a stage 3, as that doesn't mean many hours lost--any brave souls here? When 1.4 actually comes out, I may just tar up my /home (in an old kit bag?) wipe everything and start from scratch.

Right now, on all machines, it's saying nbsmtp---I'm assuming that's because I've unmerged ssmtp and emerged nbsmtp, but <shrug>
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