On Wed, 2005-06-01 at 22:14 +0200, Markus Natter wrote:
On 6/1/05, Ken Schneider
wrote: On Wed, 2005-06-01 at 13:16 -0600, Boyd Lynn Gerber wrote:
Hi Ken,
On Wed, 1 Jun 2005, Ken Schneider wrote:
Anyone know how to create a socket? Running milter-amavisd which is expecting a socket file in /var/run/amavis and the dir is empty.
I often use mknod
mknod -p socket_name
or
mknod p socket_name
depending on version of linux.
That just gives me the following error:
pc5:# mknod -p /var/run/amavis/amavis-milter.sock mknod: invalid option -- p Try `mknod --help' for more information.
And I get the same error with mknod p (without the minus sign.
And please keep it on the list.
Hi Ken,
you are running amavis under sendmail, right? you shouldn't simply create a socket file just for fun.. its like redirecting a telephone conversation to /dev/null ;)
sockets are a communication basis, most of the time in network context, but there is also the same technique to enable communication between two applications using socket files.
In your case ( I just guess you might have this case ), we have 3 part-apps that need to talk. sendmail - amavis-milter - amavisd
I'm not really sure, but if it goes in this direction, I could dig into my old amavisd setups ( I remember having used such setups in a mail-relay build up on SLE 8.1.. )
Markus
What I ended up doing is simply using touch to create the file which magically became a socket on restart of amavis. I would think that amavis would be able to create the file on it's own. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge