sendmail doesn't work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

sendmail doesn't work

pmatos
Hi all,

I am following the tutorial:
http://freshmeat.net/articles/view/1673/

And when I try to
socrates ~ # sendmail -bv [hidden email]
postdrop: warning: unable to look up public/pickup: No such file or directory
Mail Delivery Status Report will be mailed to <root>.

This error shows up and I don't know what the problem might be. I am
using Gentoo Linux.
From online search I found it might have to do with the
/var/spool/postfix directory. If I list it I get:
socrates postfix # ls
active  corrupt  deferred  hold      maildrop  private  saved
bounce  defer    flush     incoming  pid       public   trace

Should I assume there should be a pickup directory here?

Cheers,

--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Ralf Hildebrandt
* Paulo J. Matos <[hidden email]>:
> Hi all,
>
> I am following the tutorial:
> http://freshmeat.net/articles/view/1673/
>
> And when I try to
> socrates ~ # sendmail -bv [hidden email]
> postdrop: warning: unable to look up public/pickup: No such file or directory
> Mail Delivery Status Report will be mailed to <root>.

SHow master.cf - your pickup service is not running.

--
Ralf Hildebrandt ([hidden email])          [hidden email]
Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
Never underestimate the bandwidth of a station wagon full of tapes.
                              -- Dr. Warren Jackson, Director, UTCS
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Paulo J. Matos-2
On Wed, Jul 9, 2008 at 10:11 AM, Ralf Hildebrandt
<[hidden email]> wrote:

> * Paulo J. Matos <[hidden email]>:
>> Hi all,
>>
>> I am following the tutorial:
>> http://freshmeat.net/articles/view/1673/
>>
>> And when I try to
>> socrates ~ # sendmail -bv [hidden email]
>> postdrop: warning: unable to look up public/pickup: No such file or directory
>> Mail Delivery Status Report will be mailed to <root>.
>
> SHow master.cf - your pickup service is not running.
>

I had what they tell you to have:
 smtp      unix  -       -       n       -       -       smtp
   relay     unix  -       -       n       -       -       smtp
        -o smtp_generic_maps=


Now, I went there, and uncommented some lines:
628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=


I am now getting this error:
# sendmail -bv [hidden email]
Mail Delivery Status Report will be mailed to <root>.

Logs have:
Jul 10 11:47:07 socrates postfix/postfix-script[4370]: starting the
Postfix mail system
Jul 10 11:47:07 socrates postfix/master[4371]: daemon started --
version 2.5.2, configuration /etc/postfix
Jul 10 11:47:07 socrates postfix/pickup[4373]: warning: 320327C18A5:
message has been queued for 2 days
Jul 10 11:47:07 socrates postfix/pickup[4373]: 320327C18A5: uid=0 from=<root>
Jul 10 11:47:07 socrates postfix/trivial-rewrite[4378]: fatal: open
database /etc/postfix/transport.db: No such file or directory
Jul 10 11:47:08 socrates postfix/master[4371]: warning: process
/usr/lib/postfix/trivial-rewrite pid 4378 exit status 1
Jul 10 11:47:08 socrates postfix/master[4371]: warning:
/usr/lib/postfix/trivial-rewrite: bad command startup -- throttling

It is probably due to transport.db which is not mentioned in the above
referenced tutorial. :(

--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Ralf Hildebrandt
* Paulo J. Matos <[hidden email]>:

> Jul 10 11:47:07 socrates postfix/postfix-script[4370]: starting the Postfix mail system
> Jul 10 11:47:07 socrates postfix/master[4371]: daemon started -- version 2.5.2, configuration /etc/postfix
> Jul 10 11:47:07 socrates postfix/pickup[4373]: warning: 320327C18A5: message has been queued for 2 days
> Jul 10 11:47:07 socrates postfix/pickup[4373]: 320327C18A5: uid=0 from=<root>
> Jul 10 11:47:07 socrates postfix/trivial-rewrite[4378]: fatal: open database /etc/postfix/transport.db: No such file or directory

postmap /etc/postfix/transport

--
Ralf Hildebrandt ([hidden email])          [hidden email]
Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
It never was a patch. Patches are for qmail.         -- Wietse Venema
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Magnus Bäck
In reply to this post by Paulo J. Matos-2
On Thursday, July 10, 2008 at 12:48 CEST,
     "Paulo J. Matos" <[hidden email]> wrote:

[...]

> Logs have:
> Jul 10 11:47:07 socrates postfix/postfix-script[4370]: starting the
> Postfix mail system
> Jul 10 11:47:07 socrates postfix/master[4371]: daemon started --
> version 2.5.2, configuration /etc/postfix
> Jul 10 11:47:07 socrates postfix/pickup[4373]: warning: 320327C18A5:
> message has been queued for 2 days
> Jul 10 11:47:07 socrates postfix/pickup[4373]: 320327C18A5: uid=0 from=<root>
> Jul 10 11:47:07 socrates postfix/trivial-rewrite[4378]: fatal: open
> database /etc/postfix/transport.db: No such file or directory
> Jul 10 11:47:08 socrates postfix/master[4371]: warning: process
> /usr/lib/postfix/trivial-rewrite pid 4378 exit status 1
> Jul 10 11:47:08 socrates postfix/master[4371]: warning:
> /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
>
> It is probably due to transport.db which is not mentioned in the above
> referenced tutorial. :(

§4.5 of the tutorial deals with the transport table, but it doesn't
explicitly say that you need to run "postmap hash:/etc/postfix/transport"
after making the changes to the file.

Beware of blindly following tutorials found on the net. Many of them
explain the "what" but not the "why" (while other contain flat out
incorrect information), so while you may get your system working you
will not really become any wiser.

--
Magnus Bäck
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Paulo J. Matos-2
In reply to this post by Paulo J. Matos-2
On Thu, Jul 10, 2008 at 12:07 PM, Ralf Hildebrandt
<[hidden email]> wrote:

> * Paulo J. Matos <[hidden email]>:
>
>> Jul 10 11:47:07 socrates postfix/postfix-script[4370]: starting the Postfix mail system
>> Jul 10 11:47:07 socrates postfix/master[4371]: daemon started -- version 2.5.2, configuration /etc/postfix
>> Jul 10 11:47:07 socrates postfix/pickup[4373]: warning: 320327C18A5: message has been queued for 2 days
>> Jul 10 11:47:07 socrates postfix/pickup[4373]: 320327C18A5: uid=0 from=<root>
>> Jul 10 11:47:07 socrates postfix/trivial-rewrite[4378]: fatal: open database /etc/postfix/transport.db: No such file or directory
>
> postmap /etc/postfix/transport
>

Returns nothing.

> --
> Ralf Hildebrandt ([hidden email])          [hidden email]
> Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
> http://www.arschkrebs.de
> It never was a patch. Patches are for qmail.         -- Wietse Venema
>
>
>



--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Paulo J. Matos-2
In reply to this post by Paulo J. Matos-2
On Thu, Jul 10, 2008 at 12:14 PM, Magnus Bäck <[hidden email]> wrote:

> On Thursday, July 10, 2008 at 12:48 CEST,
>     "Paulo J. Matos" <[hidden email]> wrote:
>
> [...]
>
>> Logs have:
>> Jul 10 11:47:07 socrates postfix/postfix-script[4370]: starting the
>> Postfix mail system
>> Jul 10 11:47:07 socrates postfix/master[4371]: daemon started --
>> version 2.5.2, configuration /etc/postfix
>> Jul 10 11:47:07 socrates postfix/pickup[4373]: warning: 320327C18A5:
>> message has been queued for 2 days
>> Jul 10 11:47:07 socrates postfix/pickup[4373]: 320327C18A5: uid=0 from=<root>
>> Jul 10 11:47:07 socrates postfix/trivial-rewrite[4378]: fatal: open
>> database /etc/postfix/transport.db: No such file or directory
>> Jul 10 11:47:08 socrates postfix/master[4371]: warning: process
>> /usr/lib/postfix/trivial-rewrite pid 4378 exit status 1
>> Jul 10 11:47:08 socrates postfix/master[4371]: warning:
>> /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
>>
>> It is probably due to transport.db which is not mentioned in the above
>> referenced tutorial. :(
>
> §4.5 of the tutorial deals with the transport table, but it doesn't
> explicitly say that you need to run "postmap hash:/etc/postfix/transport"
> after making the changes to the file.
>
> Beware of blindly following tutorials found on the net. Many of them
> explain the "what" but not the "why" (while other contain flat out
> incorrect information), so while you may get your system working you
> will not really become any wiser.
>

What's the greater path to become wiser with postfix then? Any
suggestions? Online book?

Anyway, now the error becomes:
Jul 10 12:59:08 socrates postfix/smtp[3830]: fatal: open database
/etc/postfix/generic.db: No such file or directory


--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Magnus Bäck
In reply to this post by Paulo J. Matos-2
On Thursday, July 10, 2008 at 13:58 CEST,
     "Paulo J. Matos" <[hidden email]> wrote:

> On Thu, Jul 10, 2008 at 12:07 PM, Ralf Hildebrandt
> <[hidden email]> wrote:
>
> > postmap /etc/postfix/transport
>
> Returns nothing.

That's expected, but now you have the coveted transport.db.

--
Magnus Bäck
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Magnus Bäck
In reply to this post by Paulo J. Matos-2
On Thursday, July 10, 2008 at 14:00 CEST,
     "Paulo J. Matos" <[hidden email]> wrote:

> On Thu, Jul 10, 2008 at 12:14 PM, Magnus Bäck <[hidden email]> wrote:
>
> > Beware of blindly following tutorials found on the net. Many of them
> > explain the "what" but not the "why" (while other contain flat out
> > incorrect information), so while you may get your system working you
> > will not really become any wiser.
>
> What's the greater path to become wiser with postfix then? Any
> suggestions? Online book?

I don't know of any online book except the Postfix documentation (which
I think is very good), but there are a couple of printed books that are
supposed to be good. The Book of Postfix is often recommended.

> Anyway, now the error becomes:
> Jul 10 12:59:08 socrates postfix/smtp[3830]: fatal: open database
> /etc/postfix/generic.db: No such file or directory

postmap hash:/etc/postfix/generic

Are we starting to see a pattern? :-) All indexed maps must be run
through postmap(1) to produce the file that Postfix actually uses.
This must be done every time you make a change to the file.

--
Magnus Bäck
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Ralf Hildebrandt
In reply to this post by Paulo J. Matos-2
* Paulo J. Matos <[hidden email]>:

> On Thu, Jul 10, 2008 at 12:07 PM, Ralf Hildebrandt
> <[hidden email]> wrote:
> > * Paulo J. Matos <[hidden email]>:
> >
> >> Jul 10 11:47:07 socrates postfix/postfix-script[4370]: starting the Postfix mail system
> >> Jul 10 11:47:07 socrates postfix/master[4371]: daemon started -- version 2.5.2, configuration /etc/postfix
> >> Jul 10 11:47:07 socrates postfix/pickup[4373]: warning: 320327C18A5: message has been queued for 2 days
> >> Jul 10 11:47:07 socrates postfix/pickup[4373]: 320327C18A5: uid=0 from=<root>
> >> Jul 10 11:47:07 socrates postfix/trivial-rewrite[4378]: fatal: open database /etc/postfix/transport.db: No such file or directory
> >
> > postmap /etc/postfix/transport
> >
>
> Returns nothing.
Good!
ls -l /etc/postfix/transport*
--
Ralf Hildebrandt ([hidden email])          [hidden email]
Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
IMPORTANT: This email is intended for the use of  the  individual
addressee(s)  named  above  and  may  contain information that is
confidential,  privileged  or  unsuitable  for  overly  sensitive
persons  with  low  self-esteem, no sense of humour or irrational
religious beliefs. If you are not  the  intended  recipient,  any
dissemination,  distribution  or  copying  of  this  email is not
authorised (either explicitly or implicitly) and  constitutes  an
irritating  social  faux  pas. Unless the word absquatulation has
been used in its correct context somewhere  other  than  in  this
warning, it does not have any legal or grammatical use and may be
ignored. No animals were  harmed  in  the  transmission  of  this
email,  although  the  yorkshire  terrier  next door is living on
borrowed time, let me tell you. Those of you with an overwhelming
fear  of  the unknown will be gratified to learn that there is no
hidden message revealed by reading  this  warning  backwards,  so
just ignore that Alert Notice from Microsoft: However, by pouring
a complete circle of salt around yourself and your  computer  you
can  ensure  that  no harm befalls you and your pets. If you have
received this email in error, please  add  some  nutmeg  and  egg
whites  and place it in a warm oven for 40 minutes. Whisk briefly
and   let    it    stand    for    2    hours    before    icing.
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Paulo J. Matos-2
In reply to this post by Paulo J. Matos-2
On Thu, Jul 10, 2008 at 1:07 PM, Magnus Bäck <[hidden email]> wrote:

> On Thursday, July 10, 2008 at 14:00 CEST,
>     "Paulo J. Matos" <[hidden email]> wrote:
>
>> On Thu, Jul 10, 2008 at 12:14 PM, Magnus Bäck <[hidden email]> wrote:
>>
>> > Beware of blindly following tutorials found on the net. Many of them
>> > explain the "what" but not the "why" (while other contain flat out
>> > incorrect information), so while you may get your system working you
>> > will not really become any wiser.
>>
>> What's the greater path to become wiser with postfix then? Any
>> suggestions? Online book?
>
> I don't know of any online book except the Postfix documentation (which
> I think is very good), but there are a couple of printed books that are
> supposed to be good. The Book of Postfix is often recommended.
>
>> Anyway, now the error becomes:
>> Jul 10 12:59:08 socrates postfix/smtp[3830]: fatal: open database
>> /etc/postfix/generic.db: No such file or directory
>
> postmap hash:/etc/postfix/generic
>
> Are we starting to see a pattern? :-) All indexed maps must be run
> through postmap(1) to produce the file that Postfix actually uses.
> This must be done every time you make a change to the file.
>

Thanks a lot for the help. I will look into the documentation before
proceeding any further then.

Thanks,

Paulo Matos

> --
> Magnus Bäck
> [hidden email]
>
>
>



--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Reply | Threaded
Open this post in threaded view
|

Re: sendmail doesn't work

Paulo J. Matos-2
In reply to this post by Paulo J. Matos-2
On Thu, Jul 10, 2008 at 1:45 PM, Ralf Hildebrandt
<[hidden email]> wrote:

> * Paulo J. Matos <[hidden email]>:
>> On Thu, Jul 10, 2008 at 12:07 PM, Ralf Hildebrandt
>> <[hidden email]> wrote:
>> > * Paulo J. Matos <[hidden email]>:
>> >
>> >> Jul 10 11:47:07 socrates postfix/postfix-script[4370]: starting the Postfix mail system
>> >> Jul 10 11:47:07 socrates postfix/master[4371]: daemon started -- version 2.5.2, configuration /etc/postfix
>> >> Jul 10 11:47:07 socrates postfix/pickup[4373]: warning: 320327C18A5: message has been queued for 2 days
>> >> Jul 10 11:47:07 socrates postfix/pickup[4373]: 320327C18A5: uid=0 from=<root>
>> >> Jul 10 11:47:07 socrates postfix/trivial-rewrite[4378]: fatal: open database /etc/postfix/transport.db: No such file or directory
>> >
>> > postmap /etc/postfix/transport
>> >
>>
>> Returns nothing.
> Good!
> ls -l /etc/postfix/transport*

# ls -l /etc/postfix/transport*
-rw-r--r-- 1 root root    39 Jul  7 21:53 /etc/postfix/transport
-rw-r--r-- 1 root root 12288 Jul 10 12:59 /etc/postfix/transport.db

I think it is ok, like this, right?

I guess the problem now is that it is not being able to authenticate
to gmail but I will read the docs and I will try to get to the
solution myself.

Thanks a lot,

--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK