Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

lmtp: permission denied

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

lmtp: permission denied

  • Quote

Post by someone12345 » Sat Feb 04, 2006 12:31 pm

Hi!

I've some permission problem which I don't quite understand:

connect to /usr/lib/postfix/lmtp[/usr/lib/postfix/lmtp]: Permission denied

# ls -l /usr/lib/postfix/lmtp
-rwxr-xr-x 1 root root 239056 Feb 4 13:15 /usr/lib/postfix/lmtp

# id postfix
uid=207(postfix) gid=207(postfix) groups=207(postfix),12(mail)

Looks quite alright, doesn't it? And actually when loggin as postfix I can manually execute lmtp.
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Sat Feb 04, 2006 4:16 pm

How are you invoking this command?
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sat Feb 04, 2006 5:18 pm

magic919 wrote:How are you invoking this command?
Well...I don't know actually :) It's postfix that's invoking it...

Meanwhile after spending some time playing and trying I get this:

Feb 4 18:17:00 server master[1853]: fatal: master_spawn: exec /usr/lib/postfix/lmtp: Permission denied
Feb 4 18:17:01 server postfix/master[29605]: warning: process /usr/lib/postfix/lmtp pid 1853 exit status 1
Feb 4 18:17:01 server postfix/master[29605]: warning: /usr/lib/postfix/lmtp: bad command startup -- throttling
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Sat Feb 04, 2006 5:35 pm

Ok. So you have defined a transport in Postfix to use it.

Can you post the bottom bits of /etc/postfix/master.cf. Feel free to lose all the comments.
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sat Feb 04, 2006 5:45 pm

Code: Select all

# postconf  -n
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
home_mailbox = .maildir/
html_directory = /usr/share/doc/postfix-2.2.5/html
mail_owner = postfix
mailbox_command = /usr/lib/cyrus/deliver
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/usr/lib/postfix/lmtp
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
myhostname = server.localdomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.5/readme
relayhost = mail.nitwit.de
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550

Code: Select all

# grep -E "^[^#]+" /etc/postfix/master.cf
smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
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
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Sat Feb 04, 2006 5:52 pm

okay. Using Cyrus to deliver (which I don't..) I'd expect to see mailbox_transport = cyrus and comment out mailbox_command.

It 'knows' how to call cyrus as it's defined in your master.cf.

That's my 2p.
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sat Feb 04, 2006 6:19 pm

magic919 wrote:okay. Using Cyrus to deliver (which I don't..) I'd expect to see mailbox_transport = cyrus and comment out mailbox_command.
Hmm. Well, at least no errors show up in the log no more. But no mail as well...and I couldn't find any file in /var/spool/postfix/defer[red]. Seemed like the argv in master.cf is wrong when emerging postfix:

Feb 4 19:13:25 server pipe[5774]: fatal: pipe_comand: execvp /cyrus/bin/deliver: No such file or directory
Feb 4 19:13:25 server postfix/smtpd[5767]: disconnect from localhost[127.0.0.1]
Feb 4 19:13:26 server postfix/pipe[5773]: 96D2EFB843: to=<tcn@localhost.server.localdomain>, orig_to=<tcn@localhost>, r
elay=cyrus, delay=1, status=bounced (Command died with status 1: "/cyrus/bin/deliver")

So, I fixed it - and got:

Feb 4 19:15:51 server postfix/pipe[5917]: 77FC8FB8E9: to=<tcn@localhost.server.localdomain>, orig_to=<tcn@localhost>, r
elay=cyrus, delay=0, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_
421 4.3.0 deliver: couldn't connect to lmtpd_ )

Hm, some auth related? I didn't configure anything regarding auth and lmtp which I probably should have :)
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Sat Feb 04, 2006 6:28 pm

There's not usually any auth with lmtp. Did you change the master.cf to /usr/lib/cyrus/deliver then? Not sure exactly what you've changed.
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sat Feb 04, 2006 6:30 pm

yes, /usr/lib/cyrus/deliver
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sat Feb 04, 2006 7:33 pm

No idea? :(
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Sat Feb 04, 2006 7:36 pm

I'm not understanding why you still have lmtp errors. There's no lmtp meant to be going on with Postfix now. Doesn't add up. You did reload Postfix after taking it out??
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sat Feb 04, 2006 7:46 pm

yes, sure :(
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Sat Feb 04, 2006 7:47 pm

Hmm. I'm lost. Wanna stick up the current confs, as you did above. The truth must be out there :-)
Top
someone12345
Guru
Guru
Posts: 365
Joined: Sat Apr 09, 2005 4:28 pm

  • Quote

Post by someone12345 » Sun Feb 05, 2006 10:07 am

It works! :D Dunno what went wrong yesterday...

But I'm wondering where the "localhost" does come from:

to=<tcn@localhost.server.localdomain>, orig_to=<tcn@localhost>,
relay=cyrus, delay=0, status=sent (server.localdomain)

I configured postfix myhostname = server.localdomain.
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Sun Feb 05, 2006 12:38 pm

The localhost is part of the default for mydestination parameter in Postfix. A quick postconf mydestination will show this.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic