LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2004, 09:41 PM   #1
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
not able to receive email, postfix inq


hello everybody.

I'm able to send without any problems.
problem, excepting emial..
mandrake 10
postfix

ivirtual setup using the following how to : http://www.akadia.com/services/postf...mailboxes.html

log files aren't giving me much..
i think it has something to do with the mailbox itself/folder where the mail is being droped...
virtual_mailbox_base = /var/spool/mail/virtual

but the return undelivered mail has the following "cannot access mailbox /var/mail/bobsmith for user bobsmith.
cannot open file: Is a directory"

in compairing both folder its not the same but shouldn't it map to the one i put in main.cf or ami looking in the wrong direction

any ideas
 
Old 12-22-2004, 10:47 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Re: not able to receive email, postfix inq

Quote:
Originally posted by Robin01
hello everybody.

I'm able to send without any problems.
problem, excepting emial..
mandrake 10
postfix

ivirtual setup using the following how to : http://www.akadia.com/services/postf...mailboxes.html

log files aren't giving me much..
i think it has something to do with the mailbox itself/folder where the mail is being droped...
virtual_mailbox_base = /var/spool/mail/virtual

but the return undelivered mail has the following "cannot access mailbox /var/mail/bobsmith for user bobsmith.
cannot open file: Is a directory"

in compairing both folder its not the same but shouldn't it map to the one i put in main.cf or ami looking in the wrong direction

any ideas
What's the permissions of /var/spool/mail/virtual ? Should be owned by postfix and at least readable and writable by postfix user.
 
Old 12-23-2004, 08:02 AM   #3
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
postfix has full access to virtual folder and everythng under it...
 
Old 12-23-2004, 09:02 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by Robin01
postfix has full access to virtual folder and everythng under it...
What happens if you don't use the virtual mailbox base by commenting it out and have them all go into the main base directory.. usually in /var/spool/mail ?
 
Old 12-24-2004, 09:22 PM   #5
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
hello,

tried your recommendation and i am receiving the emails.
I like to seprate the emial for the 2 different domains i have...
like to have it so its mail/domain1 and mail/domain2 and have it go to the respective mail box..
 
Old 12-25-2004, 10:17 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by Robin01
hello,

tried your recommendation and i am receiving the emails.
I like to seprate the emial for the 2 different domains i have...
like to have it so its mail/domain1 and mail/domain2 and have it go to the respective mail box..
Not sure why it doesn't like the virtual mailbox option.. I myself tried setting up a mailbox limit size option and it crapped out on me as well, so I just turned it off. Perhaps this is something you should submit to postfix for explanation, cause your passing the correct option, postfix itself doesn't like it though.
 
Old 01-07-2005, 08:16 AM   #7
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Rep: Reputation: 15
trickykid can I also ask a question. I have setup PF on a diferent server which is working fine no problem. But I have built a new box which can send mail, but whenever I change the router to send mail to the new box for testing, everything comes back to the client and nothing gets written into the log. Sent mail is written into the logs.

My main.cf (short):

Code:
#header_checks = regexp:/etc/postfix/filters/header_checks.cf
#body_checks = regexp:/etc/postfix/filters/body_checks.cf
mime_header_checks = regexp:/etc/postfix/filters/mime_checks.cf
mydestination = $myhostname $mydomain localhost.$mydomain www.$mydomain ftp.$mydomain /etc/postfix/databases/my_destination.cf
masquerade_domains = hash:/etc/postfix/databases/masquerade.cf
mynetworks = hash:/etc/postfix/databases/network_table.cf
alias_database = hash:/etc/postfix/databases/aliases.cf
virtual_alias_maps = hash:/etc/postfix/databases/virtual_table.cf
service_throttle_time = 60s
strict_rfc821_envelopes = yes
queue_directory = /var/spool/postfix
program_directory = /usr/libexec/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mailbox_command = /usr/bin/procmail
biff = yes
mail_owner = postfix
mail_name = Postfix
default_privs = nobody
myhostname = mail.foo.co.uk
mydomain = foo.co.uk
disable_dns_lookups = no
myorigin = $mydomain
inet_interfaces = all
relayhost = [x.x.x.x]
alias_maps = hash:/etc/mail/aliases, nis:mail.aliases
alias_maps = $alias_database
home_mailbox = maildir/
mail_spool_directory = /var/spool/mail
mailbox_transport =
#transport_maps = hash:/etc/postfix/databases/transport.cf
mailbox_command = /usr/bin/procmail
message_size_limit = 102400000
mailbox_size_limit = 102400000
debug_peer_level = 2
#debugger_command =
#       PATH=/usr/bin:/usr/X11R6/bin
#       xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
readme_directory = /usr/share/doc/postfix-1.1.12/README_FILES
sample_directory = /usr/share/doc/postfix-1.1.12/samples
manpage_directory = /usr/share/man
unknown_local_recipient_reject_code = 450

Any help would be appreciated as I cannot see where I am going wrong. I have been googling this for quite a while now, but all I ever see are posts with debug errors. All posts seem to have something written in the maillog, but all I have is an entry when PF starts and stops.

Last edited by jules_fraser; 01-07-2005 at 08:18 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
email 'send' NO - email 'receive' YES..? captain skywave Linux - Wireless Networking 4 04-23-2005 04:35 AM
email 'send' YES - email 'receive' NO..? captain skywave Linux - Wireless Networking 1 04-22-2005 06:23 AM
postfix inq. Robin01 Linux - Newbie 1 12-27-2003 08:25 PM
email server inq... Robin01 Linux - Newbie 1 11-27-2003 08:02 PM
cannot receive email from mail server installed with postfix charles168 Linux - Software 4 08-15-2003 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration