Re: mail server on vm

2011-08-16 Thread Wietse Venema
Amira Othman:
> and the error I have is Recipient address rejected: User unknown in virtual
> mailbox table;(when receiving )

The recipient DOMAIN matches virtual_mailbox_domains, but the
recipient ADDRESS does not match virtual_mailbox_maps (or
virtual_alias_maps).

See: 
http://www.postfix.org/ADDRES_CLASS_README.html
http://www.postfix.org/VIRTUAL_README.html

Wietse


mail server on vm

2011-08-16 Thread Amira Othman
Hi all

I have configured postfix on centos virtual machine it works fine but I
can't add virtual domain to postfix it always refuse receiving via this
domain

Postconf -n output

 

alias_database = hash:/etc/aliases

alias_maps = hash:/etc/aliases

broken_sasl_auth_clients = yes

command_directory = /usr/sbin

config_directory = /etc/postfix

daemon_directory = /usr/libexec/postfix

disable_dns_lookups = yes

disable_vrfy_command = yes

home_mailbox = Maildir/

html_directory = no

inet_interfaces = all

local_recipient_maps = proxy:unix:passwd.byname,
$alias_maps,$virtual_mailbox_maps

local_transport = local

mail_owner = postfix

mail_spool_directory = /var/spool/mail

mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME

mailq_path = /usr/bin/mailq

manpage_directory = /usr/share/man

mydestination = localhost

mydomain = myserver.com

myhostname = mail.mysever.com

mynetworks = 192.168.56.0/24, 127.0.0.0/8

myorigin = $mydomain

newaliases_path = /usr/bin/newaliases

queue_directory = /var/spool/postfix

relay_domains =

setgid_group = postdrop

smtp_host_lookup = native

smtp_tls_note_starttls_offer = yes

smtp_use_tls = yes

smtpd_banner = $myhostname ESMTP

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated
reject_unauth_destination

smtpd_sasl_auth_enable = yes

smtpd_sasl_authenticated_header = yes

smtpd_sasl_path = private/auth

smtpd_sasl_security_options = noanonymous

smtpd_sasl_type = dovecot

smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem

smtpd_tls_auth_only = no

smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt

smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key

smtpd_tls_loglevel = 1

smtpd_tls_received_header = yes

smtpd_tls_session_cache_timeout = 3600s

smtpd_use_tls = yes

tls_random_source = dev:/dev/urandom

unknown_local_recipient_reject_code = 450

virtual_alias_maps = hash:/etc/postfix/virtual

virtual_gid_maps = static:501

virtual_mailbox_base = /home/vmail/

virtual_mailbox_domains = myserver.com,tech-vm.com

virtual_mailbox_maps = hash:/etc/postfix/vmailbox

virtual_minimum_uid = 500

virtual_transport = virtual

virtual_uid_maps = static:501

 

 

and the error I have is Recipient address rejected: User unknown in virtual
mailbox table;(when receiving )

 

Regards



Re: mail server on vm

2011-08-12 Thread Wietse Venema
Jeroen Geilman:
> On 2011-08-12 15:46, Amira Othman wrote:
> >
> > Hi all,
> >
> > I am configuring mail server on virtual machine for testing. I am 
> > using centos 5.6 and postfix-2.3.3-2.3.el5_6. I can send without 
> > problems but I can't receive mails. I don't have mx record I tried to 
> > add to  hosts file but no change.
> >
> 
> If you want postfix to respect your hosts file, you need to set
> 
>  disable_dns_lookups = yes
> 
> in main.cf.

For finer control, use "smtp_host_lookup = dns, native" or
"smtp_host_lookup = native".

http://www.postfix.org/postconf.5.html#smtp_host_lookup

Wietse
> 
> > is mx record a must even if I am using for testing only??
> >
> 
> No, an MX record is not required. You can always send mail to the FQDN 
> of your postfix server.
> 
> > Is there any alternatives of using mx record locally something like 
> > hosts file
> >
> > Regards
> >
> > *Amira Othman***
> >
> > *Server Administrator*
> >
> > *www.cairosource.com* **
> >
> > 
> >
> > **
> >
> > 
> >
> > 6 EL Nil EL Abyad, Mohandiseen
> >
> > Cairo, Egypt
> >
> > *Direct: *  +2 02 3303 7175
> > *Mobile: *  +2 012 220 4165
> >
> > The information transmitted is intended solely for the individual or 
> > entity to which it is addressed and may contain confidential and/or 
> > privileged material. Any review, retransmission, dissemination or 
> > other use of or taking action in reliance upon this information by 
> > persons or entities other than the intended recipient is prohibited. 
> > If you have received this email in error please contact the sender and 
> > delete the material from any computer.
> >
> 
> 
> -- 
> J.
> 


Re: mail server on vm

2011-08-12 Thread Jeroen Geilman

  
  
On 2011-08-12 15:46, Amira Othman wrote:

  
  
  
  
  
Hi all,
I am configuring mail server on virtual
  machine for testing. I am using centos 5.6 and
  postfix-2.3.3-2.3.el5_6. I can send without problems but I
  can’t receive mails. I don’t have mx record I tried to add to 
  hosts file but no change.
  


If you want postfix to respect your hosts file, you need to set

        disable_dns_lookups = yes

in main.cf.



  
 is mx record a must even if I am using for
  testing only?? 
  


No, an MX record is not required. You can always send mail to the
FQDN of your postfix server.


  
Is there any alternatives of using mx
  record locally something like hosts file
Regards

  

  
Amira
  Othman
Server
  Administrator
www.cairosource.com
 
  
  

  
  
6 EL Nil EL
Abyad, Mohandiseen 
Cairo, Egypt
Direct:     +2 02 3303
7175
Mobile:   +2 012 220 4165
 
  

  

The information
transmitted is intended solely for the individual or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission,
dissemination or other use of or taking action in reliance
upon this information by persons or entities other than the
intended recipient is prohibited. If you have received this
email in error please contact the sender and delete the
material from any computer.
 
 
  



-- 
J.
  



Re: mail server on vm

2011-08-12 Thread Peter Blair
The RFC stipulates that only an A record is required.  Mind you, your
/etc/hosts file isn't equivalent to an A record.  Configure an
override in your transport file for testing.

Oh, and try not to send HTML mails to mailing lists.

On Fri, Aug 12, 2011 at 9:46 AM, Amira Othman  wrote:
>
> Hi all,
>
> I am configuring mail server on virtual machine for testing. I am using 
> centos 5.6 and postfix-2.3.3-2.3.el5_6. I can send without problems but I 
> can’t receive mails. I don’t have mx record I tried to add to  hosts file but 
> no change. is mx record a must even if I am using for testing only?? Is there 
> any alternatives of using mx record locally something like hosts file
>
> Regards


Re: mail server on vm

2011-08-12 Thread Erwan Loaëc
You can also try through your favorite mail client (thunderbird, etc...) 
and define your VM-TEST-SERVER as the smtp server for your mail account.


zoolook wrote:
2011/8/12 Amira Othman >


Hi all,

I am configuring mail server on virtual machine for testing. I am
using centos 5.6 and postfix-2.3.3-2.3.el5_6. I can send without
problems but I can’t receive mails. I don’t have mx record I tried
to add to  hosts file but no change. is mx record a must even if I
am using for testing only?? Is there any alternatives of using mx
record locally something like hosts file



Have you tried telnet?

$ telnet ip-of-vm 25

Regards,
Norberto 


Re: mail server on vm

2011-08-12 Thread zoolook
2011/8/12 Amira Othman 

> Hi all,
>
> I am configuring mail server on virtual machine for testing. I am using
> centos 5.6 and postfix-2.3.3-2.3.el5_6. I can send without problems but I
> can’t receive mails. I don’t have mx record I tried to add to  hosts file
> but no change. is mx record a must even if I am using for testing only?? Is
> there any alternatives of using mx record locally something like hosts file
> 
>
>
>
Have you tried telnet?

$ telnet ip-of-vm 25

Regards,
Norberto


mail server on vm

2011-08-12 Thread Amira Othman
Hi all,

I am configuring mail server on virtual machine for testing. I am using
centos 5.6 and postfix-2.3.3-2.3.el5_6. I can send without problems but I
can't receive mails. I don't have mx record I tried to add to  hosts file
but no change. is mx record a must even if I am using for testing only?? Is
there any alternatives of using mx record locally something like hosts file

Regards


Amira Othman

Server Administrator

  www.cairosource.com

 



6 EL Nil EL Abyad, Mohandiseen 

Cairo, Egypt

Direct: +2 02 3303 7175
Mobile:   +2 012 220 4165

 

The information transmitted is intended solely for the individual or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of or
taking action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you have received this email
in error please contact the sender and delete the material from any
computer.

 

 

<>