Thank you for the answer! this is may postconf: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all inet_protocols = all mailbox_size_limit = 0 mydestination = Ubuntu-1004-lucid-64-minimal, localhost.localdomain, , localhost myhostname = Ubuntu-1004-lucid-64-minimal mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes
>On second thought: This seems to imply that your java app is sending mail >someplace else (instead of your local postfix) When I configured postfix, in system mail name I specified mail.mydomain.comand as smtp in my java app I use mail.mydomain.com, so i think my app use postfix. In the file /var/log/mail.log I have: Sep 11 11:40:01 Ubuntu-1004-lucid-64-minimal postfix/pickup[17353]: E2A4816B2B75: uid=1000 from=<myuser> Sep 11 11:40:01 Ubuntu-1004-lucid-64-minimal postfix/cleanup[17733]: E2A4816B2B75: message-id=<20110911094001.E2A4816B2B75@Ubuntu-1004-lucid-64-minimal> Sep 11 11:40:01 Ubuntu-1004-lucid-64-minimal postfix/qmgr[7721]: E2A4816B2B75: from=<myu...@mydomain.com>, size=776, nrcpt=1 (queue active) Sep 11 11:40:02 Ubuntu-1004-lucid-64-minimal postfix/smtp[17735]: E2A4816B2B75: to=<mym...@myotherdomain.com>, relay=mx.myotherdomain.com[ip]:25, delay=0.61, delays=0.02/0/0.4/0.18, dsn=2.0.0, status=sent (250 ok 1315734002 qp 12668) Sep 11 11:40:02 Ubuntu-1004-lucid-64-minimal postfix/qmgr[7721]: E2A4816B2B75: removed Where in my "mym...@myotherdomain.com" I receive emails. 2011/9/14 Ralf Hildebrandt <ralf.hildebra...@charite.de> > * Ralf Hildebrandt <ralf.hildebra...@charite.de>: > > * n3mesi83 <francesc...@gmail.com>: > > > > > > Hello everyone, > > > > > > I have a java web application that uses JavaMail to send messages with > > > attached documents (spreadsheets). On the server (Ubuntu 10.4 64-bit) I > > > installed postfix to send email. The server has a static address and I > > > connect to it via ssh. Apparently I thought I did everything right, > because > > > cron and the web application are able to send emails to my address. > Looking > > > inside my application server's log, I realized that for some e-mail (or > > > better, domains) I get this error message: > > > > > > com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, That domain is > not > > > in my list of allowed rcpthosts (# 5.5.3 - chkuser). > > > > Please look at postfix's logs. This is NOT a postfix message (it's a > > qmail error) > > On second thought: This seems to imply that your java app is sending mail > someplace else (instead of your local postfix) > > -- > Ralf Hildebrandt > Geschäftsbereich IT | Abteilung Netzwerk > Charité - Universitätsmedizin Berlin > Campus Benjamin Franklin > Hindenburgdamm 30 | D-12203 Berlin > Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 > ralf.hildebra...@charite.de | http://www.charite.de > >