hello group

Here is what I'm trying to do. I want to set up Postfix 2.3 to send
emails. I'm using Postfix as a relay only server to Google Apps. At Google
Apps we have our domain email hosted with many accounts (+400).

We have an application server that runs under a user.
When the application sends an email it sends it out properly with the
command # sendmail -t [EMAIL PROTECTED] .... with out problems
Now when it tries to send an email with command # sendmail -t
[EMAIL PROTECTED] -f [EMAIL PROTECTED] it still sends it out as
sendmail -t [EMAIL PROTECTED] ....
Is what I want to happen is when the server sees
the sendmail -f flag the Postfix server will identify the user as an
alias and send the mail out on the aliases account through the users
Google mail account


I've tried serveral configuration without success


>From the Docs I found:

Supporting multiple ISP accounts in the Postfix SMTP client

Postfix version 2.3 supports multiple ISP accounts. This can be useful
when one person uses the same machine for work and for personal use,
or when people with different ISP accounts share the same Postfix
server. To make this possible, Postfix 2.3 supports per-sender SASL
passwords and per-sender relay hosts. In the example below, Postfix
will search the SASL password file by sender before it searches that
same file by destination. Likewise, Postfix will search the per-sender
relayhost file, and use the default relayhost only as a final resort.

/etc/postfix/main.cf:
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/
sender_relay
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
relayhost = [mail.myisp.net]
# Alternative form:
# relayhost = [mail.myisp.net]:submission

/etc/postfix/sasl_passwd:
# Per-sender authentication; see also /etc/postfix/
sender_relay.
[EMAIL PROTECTED] username2:password2
[EMAIL PROTECTED] username2:password2
# Login information for the default relayhost.
[mail.myisp.net] username:password
[mail.myisp.net]:submission username:password


/etc/postfix/sender_relay:
# Per-sender provider; see also /etc/postfix/sasl_passwd.
[EMAIL PROTECTED] [mail.example.com]:submission
[EMAIL PROTECTED] [mail.example.net]

What if the account is under the same domain with is sasl_password?

[EMAIL PROTECTED] username1:password1
[EMAIL PROTECTED] username2:password2
[EMAIL PROTECTED] username3:password3
etc


What if the account is under the same domain with is sender_relay?

[EMAIL PROTECTED] [smtp.gmail.com]:587
[EMAIL PROTECTED] [smtp.gmail.com]:587
[EMAIL PROTECTED] [smtp.gmail.com]:587
etc

But this looks like it accepts the users username and password and
then relays from there.

Again, reason for doing this is I have an mulit-catalog e-commerce
application that runs as a single user. I want emails to be delivered
based on the -f flag to recipients and the from address is a variable
within the application.

Is this possible? If so, a how to or point to the documents would be
helpful

Postfix 2.3
ubuntu server 6.10

thank you

Regards


-- 
J. Scott Andreas
Ph:541-729-6090
email: [EMAIL PROTECTED]

Reply via email to