#1  
Old 26th August 2008, 12:00
ub007 ub007 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Postfix, Courier, MySQ

Falko Timme,

Quote:
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS)
I found this How-to to be very useful,Infact its one of the best available on the internet and easy to follow.However the mail system is still not working for me...Initially i thought
Courier -Imap was the issue when i tried:
Quote:
telnet ubuntu.surey.ac.uk 143
OK
a login david@ubuntu.surey.ac.uk
a NO Login failed
Now,I'm afraid postfix isnt functioning as well.The mailbox is created in /home/vmail/ , isnt it?I sent an email to user david but find that no mailbox is being created in /home/vmail.......I made sure there are no typo errors and followed the tutorial word by word.However i didnt install Amavisd, SpamAssassin and ClamAV,left out web mail as well .But i assume that wouldnt be a problem as far as the basic functionality is concerned,would it?.....

What am i missing here?What debugging steps do i need to follow now?
Reply With Quote
Sponsored Links
  #2  
Old 26th August 2008, 13:52
ub007 ub007 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry,the cut and paste went wronmg here

Last edited by ub007; 26th August 2008 at 14:05.
Reply With Quote
  #3  
Old 26th August 2008, 14:08
ub007 ub007 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
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
myhostname = inter.surey.ac.uk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = inter.surey.ac.uk, 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_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $vir$

These are the domains and user added
Code:
INSERT INTO `domains` (`domain`) VALUES ('inter.surey.ac.uk');INSERT INTO `domains` (`domain`) VALUES ('inter.surey.ac.uk');
INSERT INTO `users` (`email`, `password`, `quota`) VALUES ('david@inter.surey.ac.uk', ENCRYPT('secret'), 10485760);

Now when i sent mail using
telnet localhost 25
mail from:root@inter.surey.ac.uk
rcpt to: david@inter.surey.ac.uk

the mail is found in /var/mail/david3 //david 3 is my system username
cat david3
hi
welcome

i think its because my /etc/alias reads readslboro
postmaster : root
root: david3 //guess the mail is bounced back to david3

y isnt the mail being sent to david@inter.surey.ac.uk?i???
Reply With Quote
  #4  
Old 27th August 2008, 14:16
ub007 ub007 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Finally got it working

Connected to localhost.


Quote:
a OK LOGIN Ok.
a select inbox
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 5 EXISTS
* 1 RECENT
* OK [UIDVALIDITY 1219836018] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
a OK [READ-WRITE] Ok
It says * 5 EXISTS could anyone plz tell me how to read them from this telnet session

Thanks in advance
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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner,Mailwatch CentOS 5.2 tecstream HOWTO-Related Questions 3 16th July 2008 22:10
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 19:31.


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