2 msgDeliver mail using my ISP server
3 msgHow can I avoid mime 8-bit errors in incoming e...
3 msgnon standard .forward location

Cannot send mail from command line
\ Juan Asensio Sánchez (15 May 2007)
. \ Magnus Bäck (15 May 2007)

2 msgAddress rewriting - converting an old domain to...
4 msgEmail routing like MX functionality
4 msg3rd party spam filter and virtual users
2 msgI don't understand how does postfix work with a...
2 msgSanitize 'Undelivered Mail Returned to Sender'
5 msgSuggestion
3 msgVirtual alias query question
4 msgHow to force Postfix to rewrite (or masquerade)...
4 msgUnknown error
9 msgTrouble with mailbox_transport=error:foo
1 msgper domain reporting ?
7 msgmake error
1 msgpostfix + procmail delivery
3 msgWhere's snapshot -20070511?
1 msgtlsmgr on solaris9
6 msgsasl problem
Subject:Cannot send mail from command line
Group:Postfix-users
From:Juan Asensio Sánchez
Date:15 May 2007


 

Hi

I am a beginner. I am trying to use postfix with ldap authentication, to
make it work with gosa, with this guide: http://jriosgosa.blogspot.com. I
can connect to the mail server though imap (courier), and send mail using
authentication from outlook express. But if i try to send mail from the
shell in the same mail server, as root, i get an error.

The error is this:

===========================

I execute this:

[root@fc6 es]# mail -s "Test mail" correo
This is a test mail.
.
Cc:
[root@fc6 es]#

And i get this:


[root@fc6 ~]# tail -f /var/log/maillog -n 0
May 15 20:54:44 fc6 sendmail[3293]: l4FIsgYs003293: from=root, size=66,
class=0, nrcpts=1, msgid=<200705151854.l4FIsgYs003293>,
relay=root@localhost
May 15 20:54:44 fc6 postfix/smtpd[3284]: connect from fc6[127.0.0.1]
May 15 20:54:44 fc6 postfix/smtpd[3284]: setting up TLS connection from fc6[
127.0.0.1]
May 15 20:54:44 fc6 postfix/smtpd[3284]: TLS connection established from
fc6[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
May 15 20:54:44 fc6 sendmail[3293]: STARTTLS=client, relay=[127.0.0.1],
version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
May 15 20:54:44 fc6 postfix/smtpd[3284]: NOQUEUE: reject: RCPT from fc6[
127.0.0.1]: 550 5.1.1 <correo>: Recipient address
rejected: User unknown in local recipient table; from=<
root> to=<correo> proto=ESMTP
helo=<localhost.localdomain>
May 15 20:54:44 fc6 sendmail[3293]: l4FIsgYs003293: to=correo,
ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:00, mailer=relay,
pri=30066, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
May 15 20:54:44 fc6 sendmail[3293]: l4FIsgYs003293: l4FIsgYt003293: DSN:
User unknown
May 15 20:54:44 fc6 postfix/smtpd[3284]: DEE93D6CE7: client=fc6[127.0.0.1]
May 15 20:54:44 fc6 postfix/cleanup[3287]: DEE93D6CE7: message-id=<
200705151854.l4FIsgYt003293>
May 15 20:54:44 fc6 sendmail[3293]: l4FIsgYt003293: to=root, delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=31090, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (Ok: queued as DEE93D6CE7)
May 15 20:54:44 fc6 postfix/qmgr[3096]: DEE93D6CE7: from=<>, size=2506,
nrcpt=1 (queue active)
May 15 20:54:44 fc6 postfix/smtpd[3284]: disconnect from fc6[127.0.0.1]
May 15 20:54:45 fc6 postfix/smtp[3288]: DEE93D6CE7: to=<
root>, relay=none, delay=0.19, delays=0.08/0.04/0.06/0,
dsn=5.4.4, status=bounced (Host or domain name not found. Name service error
for name=localhost.localdomain type=A: Host not found)
May 15 20:54:45 fc6 postfix/qmgr[3096]: DEE93D6CE7: removed

===========================


This is my main.cf file:

===========================

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
smtpd_banner = mail.bytelecom.org
myhostname = mail.bytelecom.org
myorigin = bytelecom.org
mydestination = mail.bytelecom.org
mynetworks = 127.0.0.0/8, 192.0.0.0/8
alias_maps = hash:/etc/aliases, ldap:virtualaliases
alias_database = hash:/etc/aliases
virtual_mailbox_limit = 50000000000
message_size_limit = 25728640

virtual_mailbox_domains = bytelecom.org, gosa.bytelecom.org

virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:800
virtual_gid_maps = static:800

mailbox_size_limit = 50000000000
recipient_delimiter =
inet_interfaces = all
home_mailbox = Maildir/
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_unauth_destination,
permit

# RFC standars

smtpd_helo_required = yes
strict_rfc821_envelopes = yes
disable_vrfy_command = yes

# RBL checks and restrictions

smtpd_client_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_rbl_client combined.njabl.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client dialups.mail-abuse.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client bl.spamcop.net,
reject_unauth_pipelining

# Transport config

[L]_destination_concurrency_limit = 1
[L]_destination_recipient_limit = 1
[VL]_destination_concurrency_limit = 1
[VL]_destination_recipient_limit = 1

virtual_transport = [L]
local_transport = [L]
virtual_maps = hash:/etc/postfix/virtual, ldap:virtualaliases
transport_maps = hash:/etc/postfix/transport, ldap:tmap

# LDAP transport source

tmap_server_host = 127.0.0.1
tmap_search_base = dc=bytelecom,dc=org
tmap_query_filter = (|(mail=%s)(gosaMailAlternateAddress=%s))
tmap_result_attribute = gosaMailDeliveryMode
tmap_cache = no
tmap_bind = yes
tmap_bind_dn = cn=admin,dc=bytelecom,dc=org
tmap_bind_pw = secret

# GoSA main LDAP source

virtualaliases_server_host = 127.0.0.1
virtualaliases_server_port = 389
virtualaliases_bind = no
virtualaliases_timeout = 5
virtualaliases_search_base = dc=bytelecom,dc=org
virtualaliases_query_filter = (|(mail=%s)(gosaMailAlternateAddress=%s))
virtualaliases_result_attribute = gosaMailForwardingAddress,mail

# SSL/TLS config

smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpdkey.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 1

# SASL config

smtpd_sasl_auth_enable = yes
smtpd_sasl_application_name = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes

===========================

The purpose of the server is send mail locally and send mail to internet;
also receive mail from internet.

Could you help me? thanks in advance.



© 2004-2008 readlist.com