Forums

Skip to content

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

problem directing mail to users [SOLVED]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
NotQuiteSane
Guru
Guru
User avatar
Posts: 492
Joined: Sun Jan 30, 2005 1:28 am
Location: Klamath Falls, Jefferson, USA, North America, Midgarth
Contact:
Contact NotQuiteSane
Website

problem directing mail to users [SOLVED]

  • Quote

Post by NotQuiteSane » Sat Nov 04, 2006 4:37 pm

OK, I'm having a blonde moment. i think i know the solution to this problem, just not te file.

i was having problems with post fix and I finally did a complete uninstall + delete files then re-install.

works to send.

now i'm getting errors like this:

Code: Select all

Nov  3 21:45:16 [postfix/local] 709951E2D9: to=<nqs@nqs.is-a-geek.net>, relay=local, delay=0.06, delays=0.01/0.01/0/0.04, dsn=5.2.0, status=bounced (cannot update mailbox /home/nqs/.maildir for user nqs. cannot open file: Is a directory)
ok, before I had a file that postfix would use and if mail came in for user@domain, it would know to redirect it to user. what is that file, and is that my problem?

NQS
Last edited by NotQuiteSane on Wed Nov 08, 2006 4:46 am, edited 1 time in total.
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 /'
Top
flophousejoe
n00b
n00b
User avatar
Posts: 8
Joined: Wed Nov 01, 2006 6:03 am

Re: problem directing mail to users

  • Quote

Post by flophousejoe » Sat Nov 04, 2006 8:36 pm

NotQuiteSane wrote:

Code: Select all

Nov  3 21:45:16 [postfix/local] 709951E2D9: to=<nqs@nqs.is-a-geek.net>, relay=local, delay=0.06, delays=0.01/0.01/0/0.04, dsn=5.2.0, status=bounced (cannot update mailbox /home/nqs/.maildir for user nqs. cannot open file: Is a directory)
I'm guessing that your problem is this part:
status=bounced (cannot update mailbox /home/nqs/.maildir for user nqs. cannot open file: Is a directory)
It looks like you have a maildir-style mailbox-- a directory-- but postfix expects you to have an mbox-style mailbox-- a file.

Try checking out your home_mailbox parameter in /etc/postfix/main.cf . Make sure that you've appended a trailing slash to the name of your maildir directory; this is a standard convention that means "this is a maildir-style directory, not an mbox-style file". (Likewise, there exists a standard convention to find maildir-style directories as ~/.maildir/ and to find mbox-style files as /var/spool/mail/username .)

To reiterate, you'd use the below if you had a maildir-style directory called ~/.maildir/ ...

Code: Select all

/etc/postfix/main.cf:
     home_mailbox = .maildir/
... and you'd use the below if you had a traditional mbox-style file called ~/.maildir (very unlikely, as it breaks the convention) :

Code: Select all

/etc/postfix/main.cf:
     home_mailbox = .maildir
Top
dambacher
Apprentice
Apprentice
Posts: 290
Joined: Tue Feb 11, 2003 7:14 pm
Location: Germany

  • Quote

Post by dambacher » Sat Nov 04, 2006 9:55 pm

maybe you had an alias table? the file is called "aliases"
I think in /etc or /etc/postfix. Look in your configuration file for the correct position.

And with postfix, if you change this file you have to recreate the aliases.db with postfix db tools.
Top
NotQuiteSane
Guru
Guru
User avatar
Posts: 492
Joined: Sun Jan 30, 2005 1:28 am
Location: Klamath Falls, Jefferson, USA, North America, Midgarth
Contact:
Contact NotQuiteSane
Website

Re: problem directing mail to users

  • Quote

Post by NotQuiteSane » Sun Nov 05, 2006 2:21 am

flophousejoe wrote:I'm guessing that your problem is this part:
status=bounced (cannot update mailbox /home/nqs/.maildir for user nqs. cannot open file: Is a directory)
That was my thought. however:

Code: Select all

[root@mike nqs]# cat /etc/postfix/main.cf|grep maildir                                   
home_mailbox = .maildir/
[root@mike nqs]#   
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 /'
Top
NotQuiteSane
Guru
Guru
User avatar
Posts: 492
Joined: Sun Jan 30, 2005 1:28 am
Location: Klamath Falls, Jefferson, USA, North America, Midgarth
Contact:
Contact NotQuiteSane
Website

  • Quote

Post by NotQuiteSane » Sun Nov 05, 2006 3:55 am

dambacher wrote:maybe you had an alias table? the file is called "aliases"
I think in /etc or /etc/postfix. Look in your configuration file for the correct position.

And with postfix, if you change this file you have to recreate the aliases.db with postfix db tools.
Ok, that gave me a clue. found http://www.postfix.org/VIRTUAL_README.h ... tual_alias

changed main.cf to

Code: Select all

[root@mike postfix]# cat main.cf| grep virtual_a                                         
#   /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
# - destinations that match $virtual_alias_domains,
virtual_alias_domains = nqs.is-a-geek.net
virtual_alias_maps = hash:/etc/postfix/virtual
[root@mike postfix]#                  
/etc/postfix/virtual:

Code: Select all

[root@mike nqs]# cat /etc/postfix/virtual                                                
nqs@nqs.is-a-geek.net	nqs
[root@mike nqs]#      
however...

Code: Select all

[root@mike postfix]# postalias virtual                                                   
postalias: warning: virtual, line 1: need name:value pair
[root@mike postfix]#         
so I change virtural to:

Code: Select all

[root@mike postfix]# cat virtual                                                         
nqs@nqs.is-a-geek.net:	nqs
[root@mike postfix]# 
and get:

Code: Select all

[root@mike postfix]# postalias virtual
postalias: warning: virtual, line 1: name must be local
[root@mike postfix]#  
any 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 /'
Top
NotQuiteSane
Guru
Guru
User avatar
Posts: 492
Joined: Sun Jan 30, 2005 1:28 am
Location: Klamath Falls, Jefferson, USA, North America, Midgarth
Contact:
Contact NotQuiteSane
Website

  • Quote

Post by NotQuiteSane » Tue Nov 07, 2006 5:31 am

ok, I'm making some pregress on this.

I went and found my last full backup and extracted it to a seperate directory.

found this in my old .config:

Code: Select all

 virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
relay_domains = $mydestination,$transport_maps
so i recreated virtual & transport, and ran postmap hash:/path/to/file on them 9along with the chmod/chown commands first)

for refrence:

Code: Select all

[root@mike nqs]# cat /etc/postfix/transport                                              
nqs.is-a-geek.net	virtual:

[root@mike nqs]#         

Code: Select all

[root@mike nqs]# cat /etc/postfix/virtual
nqs@nqs.is-a-geek.net	nqs

[root@mike nqs]#    
I belive those were the files i was thinking of

however I was doing some searching , and running postqueue -p shows 203 messages in line. and running cat on individual messages in /var/spool/postfix/active/ shows them to be my mail


interestingly tail /var/log/mail/current shows

Code: Select all

[root@mike nqs]# tail /var/log/mail/current                                              
Nov  6 21:19:53 [postfix/master] warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Nov  6 21:20:53 [postfix/virtual] fatal: bad string length 0 < 1: virtual_mailbox_base = 
Nov  6 21:20:54 [postfix/master] warning: process /usr/lib/postfix/virtual pid 10026 exit status 1
Nov  6 21:20:54 [postfix/master] warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Nov  6 21:21:54 [postfix/virtual] fatal: bad string length 0 < 1: virtual_mailbox_base = 
Nov  6 21:21:55 [postfix/master] warning: process /usr/lib/postfix/virtual pid 10042 exit status 1
Nov  6 21:21:55 [postfix/master] warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Nov  6 21:22:55 [postfix/virtual] fatal: bad string length 0 < 1: virtual_mailbox_base = 
Nov  6 21:22:56 [postfix/master] warning: process /usr/lib/postfix/virtual pid 10043 exit status 1
Nov  6 21:22:56 [postfix/master] warning: /usr/lib/postfix/virtual: bad command startup -- throttling
[root@mike nqs]#        
from this i defer the problem is in either "virtual_mailbox_base =" or /usr/lib/postfix/virtual.

hmm. i'm gonna try adding virtual_mailbox_base =" to /etc/postfix/main.cf

hmm. now i get:

Code: Select all

[root@mike nqs]# /etc/init.d/postfix reload                                        
 * Caching service dependencies ...                                                 [ ok ]
 * Reloading postfix ...                                                            [ ok ]
[root@mike nqs]# mail nqs                                                                
Subject: test
gkifjfyjfyuj
.
EOT
[root@mike nqs]# tail /var/log/mail/current                                      
Nov  6 21:28:05 [postfix/qmgr] warning: transport virtual failure -- see a previous warning/fatal/panic logfile record for the problem description
Nov  6 21:28:05 [postfix/qmgr] 71ACF1EB03: to=<nqs@nqs.is-a-geek.net>, orig_to=<nqs>, relay=none, delay=114168, delays=114144/25/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
Nov  6 21:28:05 [postfix/qmgr] warning: premature end-of-input on private/virtual socket while reading input attribute name
Nov  6 21:28:05 [postfix/qmgr] warning: private/virtual socket: malformed response
Nov  6 21:28:05 [postfix/qmgr] warning: transport virtual failure -- see a previous warning/fatal/panic logfile record for the problem description
Nov  6 21:28:05 [postfix/qmgr] 77BE61EB34: to=<nqs@nqs.is-a-geek.net>, orig_to=<nqs>, relay=none, delay=51168, delays=51143/25/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
Nov  6 21:28:05 [postfix/qmgr] warning: premature end-of-input on private/virtual socket while reading input attribute name
Nov  6 21:28:05 [postfix/qmgr] warning: private/virtual socket: malformed response
Nov  6 21:28:05 [postfix/qmgr] warning: transport virtual failure -- see a previous warning/fatal/panic logfile record for the problem description
Nov  6 21:28:05 [postfix/qmgr] 7CCA61E2D9: to=<nqs@nqs.is-a-geek.net>, orig_to=<nqs>, relay=none, delay=113268, delays=113244/25/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
[root@mike nqs]#       
which i almost think i saw here. gonna search for unknown mail transport error

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 /'
Top
NotQuiteSane
Guru
Guru
User avatar
Posts: 492
Joined: Sun Jan 30, 2005 1:28 am
Location: Klamath Falls, Jefferson, USA, North America, Midgarth
Contact:
Contact NotQuiteSane
Website

  • Quote

Post by NotQuiteSane » Tue Nov 07, 2006 6:07 am

ok, i found nothing that helped me in my last search.

i'm pretty sure the problem is in a configuration file (and probably real simple)

here's my main.cf, anyone see any obvious problems with it?:

Code: Select all

[root@mike nqs]# cat /etc/postfix/main.cf| grep -vh '^#' "$@" | grep -v '^$'             
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = nqs.is-a-geek.net
mydomain = nqs.is-a-geek.net
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain 
unknown_local_recipient_reject_code = 450
mynetworks_style = subnet
mynetworks = 192.169.0.0/24, 127.0.0.0/8
 
mailbox_command = /usr/bin/procmail
  
debug_peer_level = 2
debugger_command =
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
	 xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.3.2/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.3.2/readme
alias_database = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2
alias_maps = hash:/etc/mail/aliases
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
relay_domains = $mydestination,$transport_maps
home_mailbox = .maildir/INBOX/
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/ssl/postfix/server.key
smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_mailbox_base = 
[root@mike nqs]#  
any help would be appreciated. i'm going into withdrawl

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 /'
Top
NotQuiteSane
Guru
Guru
User avatar
Posts: 492
Joined: Sun Jan 30, 2005 1:28 am
Location: Klamath Falls, Jefferson, USA, North America, Midgarth
Contact:
Contact NotQuiteSane
Website

  • Quote

Post by NotQuiteSane » Wed Nov 08, 2006 4:43 am

ok, i fixed it.

made 2 changes.

changed myhostname = nqs.is-a-geek.net to myhostname = mike.nqs.is-a-geek.net

and commented out the following

Code: Select all

virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
relay_domains = $mydestination,$transport_maps 
so yea, i get mail again.

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 /'
Top
Post Reply

8 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