Thanks Blackbird! I was afraid that would be tricky, so I've decided for now that if it's a CBHOLD, and the agent wants an email sent, he will fill out the email address, and it will get sent. If he codes it a 3 Call Back, as long as the email field isnt filled out, they won't get an email. If the field is already filled out, they will get the email, but that may be not a bad idea anyway. Another question if I may?
I have email on dispo working for 1 gmail address. I tried adding 2 more into the sasl_passwd file and it threw the error, duplicate entries. Is there any way to use multiple gmail emails for relaying? That is, I want to be able to use send from 3 gmail addresses. I made separate containers for each one, but when i try to use the other containers, it still has the send_from_email address as the first one.
Thanks. Кстати вы не русский?
Update:
A little progress, I found out how to stop postmap complaining about multiple entries for the gmail relay:
/etc/postfix/sasl_passwd:
# per-sender authentication
account1@gmail .com
account1@gmail.com:passwd1
account2@gmail .com
account2@gmail.com:passwd2
# default relayhost
[smtp.gmail.com]:587
default_account@gmail.com:default_passwd
/etc/postfix/sender_relay:
account1@gmail.com [smtp.gmail.com]:587
account2@gmail.com [smtp.gmail.com]:587
postmap sasl_passwd sender_relay
systemctl restart postfix
Now postmap doesnt complain, I thought everything would work. Emails go out on all 3 emails, but it still shows sender as default relay.
I notice I can specify the from address in sendmail and that works. I have a container set up for each email account, and that container name is specified in the dispo send email url. But Vicidial is reading the default relay in sasl_passwd and using that email address as the from address, regardless of what from email the container specifies.
I just read about gmail rewriting the from address of all emails relayed its accounts. Now im thinking I have 3 servers, I could configure postfix on each to relay to a different gmail address, and send the dispo_send_email url to that server. 3 gmail accounts, 3 postfix servers, each relaying to the specified gmail account.
Okay guys, that worked. I set up my db server to relay the 1st gmail address, my asterisk server to relay a 2nd gmail address, and my web server to relay a 3rd gmail address, different containers for each email, and pointed the dispo call url to the corresponding postfix server. This works for me right now, I'm only using 3 campaigns and 3 gmail addresses. If I had 10 or 20 different gmails I don't know how I would get that to work, or if its possible. But this worked for me.
John