LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-05-2013, 06:42 PM   #1
caoimhin
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
Dovecot / postfix local delivery issues


Hello,

I am setting up a local MX to deliver mail only locally but I'd like the mail to look appropriate and act as if it were real mail. I have the machine set up with a local domain name: thebox.cmu. Again, I only want to send and receive mail from local users to local users but using the domain name e.g. localuser@thebox.cmu


I was able to receive previous test emails initially but after there were retrieved I haven't been able to send any further messages to myself.

Any ideas would be appreciated.


I've included output from both postconf -n and dovecot -n below.

Output
-------

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_transport = error
home_mailbox = Maildir
mailbox_command =
mailbox_size_limit = 0
mydestination = $myhostname localhost.$mydomain localhost
myhostname = thebox.cmu
mynetworks = host
myorigin = $myhostname
notify_classes = resource, software, bounce, 2bounce
readme_directory = no
recipient_delimiter = +
relay_domains = 127.0.0.0/8 [::1]/128
relay_transport = error
relayhost = host
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes




dovecot -n
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-37-generic x86_64 Ubuntu 12.04.2 LTS
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
auth_verbose_passwords = plain
mail_debug = yes
mail_location = maildir:~/Maildir
mail_plugins = acl quota
namespace {
hidden = no
inbox = yes
location =
prefix =
separator = /
type = private
}
passdb {
driver = shadow
}
protocols = imap pop3
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
process_min_avail = 0
service_count = 1
vsz_limit = 64 M
}
service lmtp {
unix_listener lmtp {
mode = 0666
}
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
driver = passwd
}
verbose_ssl = yes
protocol imap {
imap_capability =
imap_client_workarounds =
imap_id_log =
imap_id_send =
imap_idle_notify_interval = 2 mins
imap_logout_format = bytes=%i/%o
imap_max_line_length = 64 k
mail_max_userip_connections = 10
mail_plugins = acl quota
}
protocol pop3 {
mail_max_userip_connections = 10
mail_plugins = acl quota
pop3_client_workarounds =
pop3_enable_last = no
pop3_fast_size_lookups = no
pop3_lock_session = no
pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
pop3_no_flag_updates = no
pop3_reuse_xuidl = no
pop3_save_uidl = no
pop3_uidl_format = %08Xu%08Xv
}


ERROR MESSAGES:
..................
tail /var/log/syslog
Feb 5 19:34:06 vigilant postfix/qmgr[12997]: 73574E1B71: from=<double-bounce@thebox.cmu>, size=2218, nrcpt=1 (queue active)
Feb 5 19:34:06 vigilant postfix/local[13207]: 721DAE1B4E: to=<localuser@thebox.cmu>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.2.0, status=bounced (cannot update mailbox /home/localuser/Maildir for user localuser. cannot open file: Is a directory)
Feb 5 19:34:06 thebox postfix/cleanup[13203]: 74861E1B2C: message-id=<20130206003406.74861E1B2C@thebox.cmu>
Feb 5 19:34:06 thebox postfix/local[13204]: 73574E1B71: to=<root@thebox.cmu>, orig_to=<postmaster>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 5 19:34:06 thebox postfix/qmgr[12997]: 73574E1B71: removed
Feb 5 19:34:06 thebox postfix/bounce[13206]: 721DAE1B4E: postmaster non-delivery notification: 74861E1B2C
Feb 5 19:34:06 thebox postfix/qmgr[12997]: 721DAE1B4E: removed
Feb 5 19:34:06 thebox postfix/qmgr[12997]: 74861E1B2C: from=<double-bounce@vigilant.cert.cmu>, size=4228, nrcpt=1 (queue active)
Feb 5 19:34:06 thebox postfix/local[13207]: 74861E1B2C: to=<root@thebox.cmu>, orig_to=<postmaster>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 5 19:34:06 thebox postfix/qmgr[12997]: 74861E1B2C: removed
 
Old 02-06-2013, 08:52 AM   #2
caoimhin
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
As always happens, once I swallow my pride and ask for help I fix it.
Turned out that "home_mailbox = Maildir" was missing a /. I hate that.
The correct line in main.cf is:
home_mailbox = Maildir/

To anyone else that stumbles on this. The above is an appropriate configuration for a local only MX. It does not implement any security features other than domain restriction.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix local delivery isak Linux - Server 1 03-24-2010 12:37 PM
Postfix issues - Local delivery okay, no virtual: or maildrop: transport. gankoji Linux - Server 1 08-05-2009 03:46 PM
Postfix local delivery problem gauge73 Linux - Software 1 04-02-2008 10:12 AM
postfix - local delivery 'To: ' rewriting ilikejam Linux - Server 0 11-17-2006 12:07 PM
Postfix and local delivery shawnbishop Linux - Software 20 10-28-2006 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:40 AM.

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