Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-06-2011, 03:50 AM   #1
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Rep: Reputation: 1
Question iRedMail v0.6.1

I am having problems with iRedMail version 0.6.1

Whats happening is its all working fine the actual system but I am not receiving any of roots emails, like say the system checks I have in place.

Is there anyway of getting it so root gets these only (i.e. so I dont have to get an email service to forward these emails to a real domain as such)?

I mean this system uses Postfix and has virtual domains and virtual users, what I mean by real domains is virtual domains sorry.

I just want to allow root to see its own emails, any suggestions?

I have quoted the /etc/postfix/ file (as I think this is is but not sure what to change, this is of iRedMails change though, so it wont be of the same file from the default install of postfix).

(I have for ease of reading cut out any commented out settings etc):
queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

data_directory = /var/lib/postfix

mail_owner = postfix

inet_interfaces = all

mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname

unknown_local_recipient_reject_code = 550

relayhost =

alias_maps = hash:/etc/postfix/aliases

alias_database = hash:/etc/postfix/aliases

debug_peer_level = 2

debugger_command =
ddd $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

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.5.9/samples

readme_directory = /usr/share/doc/postfix-2.5.9/README_FILES

inet_protocols = ipv4
myhostname =
myorigin =
mydomain =
mail_name = iRedMail
mail_version = 0.6.1
biff = no
relay_domains = $mydestination, proxy:mysql:/etc/postfix/
mynetworks =
mynetworks_style = subnet
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
delay_warning_time = 0h
policy_time_limit = 3600
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
recipient_delimiter = +
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
mailbox_size_limit = 15728640
virtual_minimum_uid = 500
virtual_uid_maps = static:500
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail
transport_maps = proxy:mysql:/etc/postfix/, proxy:mysql:/etc/postfix/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/
virtual_mailbox_maps = proxy:mysql:/etc/postfix/
virtual_alias_maps = proxy:mysql:/etc/postfix/, proxy:mysql:/etc/postfix/
sender_bcc_maps = proxy:mysql:/etc/postfix/, proxy:mysql:/etc/postfix/
recipient_bcc_maps = proxy:mysql:/etc/postfix/, proxy:mysql:/etc/postfix/
relay_recipient_maps = proxy:mysql:/etc/postfix/
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = no
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:
smtpd_tls_security_level = may
smtpd_enforce_tls = no
smtpd_tls_loglevel = 0
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
tls_random_source = dev:/dev/urandom
tls_daemon_random_source = dev:/dev/urandom

# Uncomment the following line to enable policyd sender throttle.
#smtpd_end_of_data_restrictions = check_policy_service inet:
mailbox_command = /usr/libexec/dovecot/deliver
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = dovecot-auth
content_filter = smtp-amavis:[]:10024
I think I know why I cannot receive localhost mail as its not set within the configs, how would I do this bearing in mind I am using dovecot?

Any helps appreciated in advance,

PS Just a note actually I did not put in when posting this thread is that it seems to be going to the default account i.e. the one when you go through iRedMail's startup script, to get it all installed it sets a user called www then at the domain so: (in this example is where the user is getting the mail, i.e. everytime I send root an email it sends it to this address, how would I amend this, if anyone can make this more clear for me, to allow root to see it itself and not a virtual user, then I would be greatful, here is a log of exactly what is happening:

Jan 6 09:56:00 server postfix/qmgr[6429]: 1088D25E408: from=<>, size=1143, nrcpt=1 (queue active)
Jan 6 09:56:00 server postfix/local[6468]: 09D0D25E407: to=<>, relay=local, delay=0.04, delays=0.01/0.02/0/0.02, dsn=2.0.0, status=sent (forwarded as 1088D25E408)
Jan 6 09:56:00 server postfix/qmgr[6429]: 4B9DC25E406: removed
Jan 6 09:56:00 server postfix/pipe[6470]: 1088D25E408: to=<>, relay=dovecot, delay=0.05, delays=0.01/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 6 09:56:00 server postfix/qmgr[6429]: 1088D25E408: removed
Jan 6 09:56:00 server postfix/smtp[6469]: 09D0D25E407: to=<>,[]:25, delay=0.15, delays=0.01/0.03/0.08/0.03, dsn=2.0.0, status=sent (250 OK id=1PamZf-0000wI-7c)
Jan 6 09:56:00 server postfix/qmgr[6429]: 09D0D25E407: removed
As usual any helps appreciated but a bit out of my depth with this, sure I can pick it up though!

Thanks again,

Last edited by j.smith1981; 01-06-2011 at 04:03 AM. Reason: Correction on the problem
Old 01-21-2011, 11:11 AM   #2
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
Has anyone been able to come up with a solution yet?

I might have a look at this from iredmail if not, just wondered if someone else has ever used this package, well packages, I mean its a bash setup script that automates the setup of an email service.

Tried using the aliases in /etc but that doesn't seem to work, will retry as its been a while since I did any work on this.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
iRedMail nima0102 Linux - Server 4 11-08-2011 11:11 AM
LXer: iRedMail:Full-Featured Mail Server With LDAP, Postfix, RoundCube/SquirrelMail O LXer Syndicated Linux News 0 10-09-2009 05:00 PM
LXer: Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd LXer Syndicated Linux News 0 07-20-2009 04:51 PM
LXer: iRedMail: Mail Server With LDAP, Postfix, RoundCube/SquirrelMail, Dovecot On De LXer Syndicated Linux News 0 06-05-2009 12:30 PM
LXer: iRedMail: Build A Full-Featured Mail Server On CentOS 5.x LXer Syndicated Linux News 0 04-13-2009 12:20 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 AM.

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