Results 1 to 4 of 4
Hello All!
I followed This Tutorial And im unable to send or receive any mail. I'm able to login via roundcube webmail (Dovecot) using the mysql database.
This is my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-30-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 2
[Centos 4.4]PostFix(2.4.5) Virtual Domain Help
Hello All!
I followed This Tutorial And im unable to send or receive any mail. I'm able to login via roundcube webmail (Dovecot) using the mysql database.
This is my mail log,
This is my main.cfCode:Sep 30 00:53:50 localhost postfix/postfix-script[4480]: starting the Postfix mail system Sep 30 00:53:50 localhost postfix/master[4481]: daemon started -- version 2.4.5, configuration /etc/postfix Sep 30 00:54:30 localhost dovecot: auth-worker(default): mysql: Connected to localhost (postfix) Sep 30 00:55:30 localhost postfix/smtpd[4582]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Sep 30 00:55:30 localhost postfix/smtpd[4582]: connect from unknown[127.0.0.1] Sep 30 04:55:30 localhost postfix/smtpd[4582]: disconnect from unknown[127.0.0.1] Sep 30 04:56:05 localhost postfix/smtpd[4582]: connect from unknown[64.233.162.230] Sep 30 04:56:05 localhost postfix/smtpd[4582]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Sep 30 04:56:05 localhost postfix/smtpd[4582]: NOQUEUE: reject: RCPT from unknown[64.233.162.230]: 451 4.3.0 <sniper7kills@s7k.hopto.org>: Temporary lookup failure; from=<sniper7kills@gmail.com> to=<sniper7kills@s7k.hopto.org> proto=ESMTP helo=<nz-out-0506.google.com> Sep 30 00:56:05 localhost postfix/cleanup[4597]: DDA77809DB: message-id=<20070930045605.DDA77809DB@localhost.localdomain> Sep 30 04:56:05 localhost postfix/smtpd[4582]: disconnect from unknown[64.233.162.230] Sep 30 00:56:06 localhost postfix/qmgr[4482]: DDA77809DB: from=<double-bounce@localhost.localdomain>, size=902, nrcpt=1 (queue active) Sep 30 00:56:06 localhost postfix/local[4599]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Sep 30 00:56:06 localhost postfix/local[4599]: DDA77809DB: to=<root@localhost.localdomain>, orig_to=<postmaster>, relay=local, delay=0.27, delays=0.17/0.05/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox) Sep 30 00:56:06 localhost postfix/qmgr[4482]: DDA77809DB: removed
This is my master.cfCode:virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:89 virtual_mailbox_base = /var/mail virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_limit = 51200000 virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_minimum_uid = 89 virtual_transport = virtual virtual_uid_maps = static:89 # Additional for quota support (NOT YET INSTALLED) #virtual_create_maildirsize = yes #virtual_mailbox_extended = yes #virtual_mailbox_limit_maps = #mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf #virtual_mailbox_limit_override = yes #virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his #diskspace quota, please try again later. #virtual_overquota_bounce = yes
Anyone willing to help i would greatly appreciate it! If you are willing to help me but need more information please im me,Code:# # Postfix master process configuration file. For details on the format # of the file, see the Postfix master(5) manual page. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 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/local/bin/maildrop -d ${recipient} # # The Cyrus deliver program has changed incompatibly, multiple times. # old-cyrus unix - n n - - pipe flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user} # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrus_destination_recipient_limit=1 cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - y - - smtpd virtual unix - n n - - virtualretry unix - - n - - error retry unix - - n - - error dovecot unix - n n - - pipe flags=DRhu user= #vmail:mail argv=/usr/lib/dovecot/deliver -d $(recipient)
sniper7kills <- AIM / XFIRE
Im willing to get you login info if necessary
- 10-07-2007 #2Just Joined!
- Join Date
- Oct 2007
- Posts
- 10
i'm willing to help
hello there, i too just went through that tutorial and a few others. if you haven't, i would also recommend taking a look here Howto: ISP-style Email Server with Debian-Etch and Postfix 2.3 i ended up merging a couple of howto together to get our mail server going. can you post more of your main.cf file. and also some more details such as your chosen pop/imap server. it appears as though from your log file that you chose dovecot. if you are having dovecot as your lda you need to have virtual_transport = dovecot and dovecot_destination_recipient_limit = 1. for quotas i ended up not using the postfix vda patch cause it didn't seem to be compatible with passing quota information on to other programs such as the webmail client and such. so i chose to use the dovecot quotas. and no patching necessary. also i installed with centos 5 and was able to use the postfix package out of the plus repository for the mysql support since no postfix patching for vda quotas was needed. anyways here's my config if it helps.
# i just made the user vmail and added it to the already existing mail group
mkdir -p /var/vmail
chmod 770 /var/vmail
useradd -r -u 101 -g mail -d /var/vmail -s /sbin/nologin -c "Virtual mailbox" vmail
chown vmail:mail /var/vmail
main.cf
then in my master.cfCode:myhostname = hostname.fqdn mydomain = fqdn myorigin = $myhostname inet_interfaces = all # this is needed if your server has a non public address cause it's behind a firewall. put your public nat'd address here so postfix knows where it's getting it's mail from proxy_interfaces = xxx.xxx.xxx.xxx mydestination = $myhostname, localhost.$mydomain, localhost mynetworks_style = subnet mynetworks = 127.0.0.0/8 relayhost = # the common settings to enable SASL: smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes broken_sasl_auth_clients = yes smtpd_sasl_security_options = noanonymous # dovecot specific sasl support smtpd_sasl_type = dovecot # Can be an absolute path, or relative to $queue_directory smtpd_sasl_path = private/auth home_mailbox = Maildir/ virtual_mailbox_base = /var/vmail # dovecot lda virtual_transport = dovecot dovecot_destination_recipient_limit = 1 virtual_minimum_uid = 101 virtual_uid_maps = static:101 virtual_gid_maps = static:12 virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,proxy:mysql:/etc/postfix/mysql_email2email.cf # fight spam smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_rbl_client sbl.spamhaus.org reject_rbl_client xbl.spamhaus.org
Code:dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d ${recipient}
- 10-07-2007 #3Just Joined!
- Join Date
- Oct 2007
- Posts
- 10
it also looks as though in your master.cf file if that posting is accurate that the dovecot line is a little messed up. the second line is commented out and not starting with the flags= which will make postfix unable to talk to dovecot lda.
- 10-07-2007 #4Just Joined!
- Join Date
- Sep 2007
- Posts
- 2
Thank you it looks like it is up and running now!


Reply With Quote
