1

Topic: Problem with Postfix subsystem private/rewrite No such file or directo

HI all,
So I have a problem ....

After new installation of iRedMail on fairly fresh system [standard ubuntu setup on which I first installed mysql then uninstall it before iRedMail installation], I encountered a problem with smtp - roundcube is unable to send emails. postfix reports: swarning: connect #1 to subsystem private/rewrite: No such file or directory.
Also I'm new to postfix/email systems so i dont have a clue whats going on


==== Required information ====
- iRedMail version: iRedMail-0.8.7
- Store mail accounts in which backend: MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04.1 LTS
- Related log if you're reporting an issue:

Nov  4 17:24:49 sfic-2 postfix/smtpd[1691]: connect from localhost[127.0.0.1]
Nov  4 17:24:49 sfic-2 postfix/smtpd[1691]: warning: connect #1 to subsystem private/rewrite: No such file or directory
Nov  4 17:24:59 sfic-2 postfix/smtpd[1691]: warning: connect #2 to subsystem private/rewrite: No such file or directory
Nov  4 17:25:09 sfic-2 postfix/smtpd[1691]: warning: connect #3 to subsystem private/rewrite: No such file or directory
Nov  4 17:25:19 sfic-2 postfix/smtpd[1691]: warning: connect #4 to subsystem private/rewrite: No such file or directory
Nov  4 17:25:29 sfic-2 postfix/smtpd[1691]: warning: connect #5 to subsystem private/rewrite: No such file or directory
Nov  4 17:25:39 sfic-2 postfix/smtpd[1691]: warning: connect #6 to subsystem private/rewrite: No such file or directory
Nov  4 17:25:49 sfic-2 postfix/smtpd[1691]: warning: connect #7 to subsystem private/rewrite: No such file or directory
Nov  4 17:25:59 sfic-2 postfix/smtpd[1691]: warning: connect #8 to subsystem private/rewrite: No such file or directory
Nov  4 17:26:09 sfic-2 postfix/smtpd[1691]: warning: connect #9 to subsystem private/rewrite: No such file or directory
Nov  4 17:26:19 sfic-2 postfix/smtpd[1691]: warning: connect #10 to subsystem private/rewrite: No such file or directory
Nov  4 17:26:29 sfic-2 postfix/smtpd[1691]: fatal: connect #11 to subsystem private/rewrite: No such file or directory
Nov  4 17:26:30 sfic-2 roundcube: SMTP Error: SMTP error: Failed to set sender 'postmaster@xxxx' in /usr/share/apache2/roundcubemail-1.0.1/program/lib/Roundcube/rcube.php on line 1504 (POST /mail/?_task=mail&_unlock=loading1415118261755&_lang=en_GB?_task=mail&_action=send)

====

master.cf:

submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
#  -o content_filter=smtp-amavis:[127.0.0.1]:10026

# Use dovecot deliver program as LDA.
dovecot unix    -       n       n       -       -      pipe
    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain} -m ${extension}

smtp-amavis unix -  -   -   -   10  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

127.0.0.1:10025 inet n  -   -   -   -  smtpd
    -o content_filter=
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o strict_rfc821_envelopes=yes
    -o smtp_tls_security_level=none
    -o smtpd_tls_security_level=none
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_end_of_data_restrictions=
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
discard   unix  -       -       -       -       -       discard
retry     unix  -       -       -       -       -       error
relay     unix  -       -       n       -       -       smtp -o smtp_fallback_relay= 
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
#  -o content_filter=smtp-amavis:[127.0.0.1]:10026

# Use dovecot deliver program as LDA.
dovecot unix    -       n       n       -       -      pipe
    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain} -m ${extension}

smtp-amavis unix -  -   -   -   10  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

127.0.0.1:10025 inet n  -   -   -   -  smtpd
    -o content_filter=
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o strict_rfc821_envelopes=yes
    -o smtp_tls_security_level=none
    -o smtpd_tls_security_level=none
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_end_of_data_restrictions=
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings

Thanks!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Problem with Postfix subsystem private/rewrite No such file or directo

As clearly mentioned in iRedMail installation guide:

WARNING: iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed, e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install and configure them for you automatically. Otherwise it may override your existing files/configurations althought it will backup files before modifing, and it may be not working as expected.

You removed MySQL package, did you also remove SQL database files?
I suggest you reinstall Ubuntu OS, then install iRedMail.