Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th July 2010, 03:24
VRage VRage is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default - Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail

Hello,
I'm somewhat new to linux and followed this tutorial as closely as i could.

If i try to login to an email account created I get an error message such as:

"imapd: chdir visual-rebirth.com/user/: No such file or directory"

If I send an email to an address on this server i guet the following error:

"connect to transport private/amavis: No such file or directory
Jul 26 02:18:11 visual-rebirth postfix/error[25761]: 5F54E37680AF: to=<user@visual-rebirth.com>, relay=none, delay=3534, delays=3534/0.01/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)"

Any ideas on where to look to sort this out?

Thanks in advance for your time.

My main.cf is as follows
Quote:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = visual-rebirth.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = visual-rebirth.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_cano$content_filter = amavis:[127.0.0.1]:10024 receive_override_options = no_address_mappings
Reply With Quote
Sponsored Links
  #2  
Old 26th July 2010, 14:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the URL of the tutorial?

Did you send a welcome mail to that account? The necessary directories are created automatically when the first email arrives.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 26th July 2010, 15:57
VRage VRage is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default

The tutorial's here


When I send the email using mailx I get the same error:

warning: connect to transport private/amavis: No such file or directory
relay=none, delay=0.04, delays=0.03/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Reply With Quote
  #4  
Old 27th July 2010, 14:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/postfix/master.cf and /etc/postfix/main.cf? What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 27th July 2010, 15:36
VRage VRage is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hi again,
Many thanks for you time on this.

Main.cf is above, netstat -tap and master.cf bellow

Netstata -tap
Quote:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:10024 *:* LISTEN -
tcp 0 0 localhost.localdo:10025 *:* LISTEN -
tcp 0 0 *:mysql *:* LISTEN -
tcp 0 0 *:www *:* LISTEN -
tcp 0 0 *:ssh *:* LISTEN -
tcp 0 0 *:smtp *:* LISTEN -
tcp 0 300 visual-rebirth.com:ssh a81-84-139-88.cpe:64412 ESTABLISHED -
tcp6 0 0 [::]op3 [::]:* LISTEN -
tcp6 0 0 [::]:imap2 [::]:* LISTEN -
tcp6 0 0 [::]:ssh [::]:* LISTEN -
tcp6 0 0 [::]:imaps [::]:* LISTEN -
tcp6 0 0 [::]op3s [::]:* LISTEN -
tcp6 0 0 visual-rebirth.co:imap2 a81-84-139-88.cpe:64586 ESTABLISHED -
tcp6 0 0 visual-rebirth.co:imap2 a81-84-139-88.cpe:64418 TIME_WAIT -


master.cf

Quote:
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + arg
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#

# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ================================================== ================== #
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
# lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
# mailbox_transport = lmtp:inet:localhost
# virtual_transport = lmtp:inet:localhost
#
# ================================================== ================== #
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus unix - n n - - pipe
# user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} #
# ================================================== ================== # Old example of delivery via Cyrus.
#
#old-cyrus unix - n n - - pipe
# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} #
# ================================================== ==================
#
# ================================================== ================== #
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) #
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks -o smtpd_bind_address=127.0.0.1


Last edited by VRage; 27th July 2010 at 15:41.
Reply With Quote
  #6  
Old 28th July 2010, 14:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Code:
amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
is missing in your master.cf. The end of your master.cf must look as described in chapter 9 on http://www.howtoforge.com/virtual-us...buntu-10.04-p3
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 28th July 2010, 16:03
VRage VRage is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Thanks!
Feeling silly for having missed those lines =)

Sadly now I get the following:
Quote:
Jul 28 15:00:51 visual-rebirth postfix/cleanup[23708]: 152F737680B0: message-id=<20100728140051.152F737680B0@visual-rebirth.com>
Jul 28 15:00:51 visual-rebirth postfix/bounce[24473]: 0FA1A37680AE: sender non-delivery notification: 152F737680B0
Jul 28 15:00:51 visual-rebirth postfix/qmgr[3693]: 152F737680B0: from=<>, size=2839, nrcpt=1 (queue active)
Jul 28 15:00:51 visual-rebirth postfix/trivial-rewrite[23710]: warning: do not list domain visual-rebirth.com in BOTH mydestination and virtual_mailbox_domains
Jul 28 15:00:51 visual-rebirth postfix/qmgr[3693]: 0FA1A37680AE: removed Jul 28 15:00:51 visual-rebirth postfix/smtp[24472]: 152F737680B0: to=<xxxxxxxx@visual-rebirth.com>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for mail.visual-rebirth.com loops
back to myself)
Jul 28 15:00:51 visual-rebirth postfix/qmgr[3693]: 152F737680B0: removed
Not sure if related but on my transport table I have:

[Domain] [Transport]
visual-rebirth.com smtp:mail.visual-rebirth.com

Last edited by VRage; 3rd August 2010 at 18:17.
Reply With Quote
  #8  
Old 29th July 2010, 01:50
herbie herbie is offline
Member
 
Join Date: Sep 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I just completed the install and the problem I'm getting is the domains and mailboxes are not being automatically created with the welcome message.
Any ideas?
What actually creates the mailbox?

mailx sales@example.com
But the there is no /home/vmail/example.com or sales inside it

Last edited by herbie; 29th July 2010 at 01:53.
Reply With Quote
  #9  
Old 29th July 2010, 04:54
VRage VRage is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Have you checked /var/log/mail.log to see if the message is actually delivered or if an error occurred?
Reply With Quote
  #10  
Old 29th July 2010, 19:06
herbie herbie is offline
Member
 
Join Date: Sep 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Code:
fatal: bad string length 0 < 1: virtual_mailbox_base = 
warning: process /usr/lib/postfix/virtual pid 3240 exit status 1
warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (mdv2010) taylor-made HOWTO-Related Questions 1 21st July 2010 05:18
Update for Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail de Freitas HOWTO-Related Questions 6 7th July 2010 22:49
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) keyslapper HOWTO-Related Questions 4 20th April 2010 15:46
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.04) Master One HOWTO-Related Questions 4 1st July 2009 15:38
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10) VTCop HOWTO-Related Questions 9 9th April 2009 16:17


All times are GMT +2. The time now is 08:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.